# Questions tagged [graphics]

Questions on the construction of 2D and 3D graphics through the direct use of primitives, directives, and functions. Include the graphics3d tag for questions specifically on 3D graphics. This tag is not to be used for basic questions on visualizing functions and lists using the various flavors of Plot commands.

3,649 questions
Filter by
Sorted by
Tagged with
73 views

### Tangent line, slope and intercept at y=0 from data points

If I have the following data: https://pastebin.com/ti6pwnPP Which plotted with ListLinePlot[data] looks like: Questions: 1) ...
79 views

### Detect if any edges cross in a graph with a specified layout

I have some Graphs for which I have explicitly specified both the VertexCoordinates and the ...
28 views

### sequential execution of Show with two input streams, one of graphics object and another of characters

The question is how to sequentially execute Show with two streams of input. The first is graphics object stream and the second is a character stream for supplying labelling for the graphics. I tried <...
102 views

### Finding intersection points of the Line command

Suppose I have two lists to which I apply the Line command for example A = {{-4,0},{4,0}} B = {{0,4},{0,-4}} and I take ...
37 views

### Unexpected data about function GraphDistanceMatrix

This is a weighted undirected graph generated from Excel table data. ...
513 views

### How do I plot a series of disks in the center of each hexagon?

I am trying to put a series of disks at the center of each hexagon, but I could center only 1. How do I center all of the disks at the center of each hexagon? Here is the code I am using. ...
63 views

### Add lines and text in a plot

If I have the following code: ...
96 views

### 3D graphics render as though no illumination

As you can see from the image below, when I plot 3D surfaces, regions, etc, they render as though there was no light source (left is Mathematica's help documentation, right is how it renders for me): ...
113 views

### Programming a Colour Blend

Huge thanks to those who have helped me find my footing especially to @bRost03 who did the programming below. I hope you guys don't mind if I clarify one thing about the programming - I think I have ...
278 views

### How to draw a parenthesis-like shape?

Can't quite figure out how to draw the shape below with Lines and make them play nice at the vertices where they meet. I currently have three lines of different thicknesses, but it's clearly not ...
24 views

### Combination of Left alignment and Rotate messes up Automatic PlotRange

In the following code, left-aligning the inset AND rotating it seems to completely mess up the Automatic PlotRange. Is this intended behavior? If it's a bug, is there a workaround? 12.1.0.0 on MacOS ...
40 views

### Why FilledCurve and BezierCurve or BSplineCurve do not fit

I want to draw the outline of a circle (it's actually the glyph period from Cascadia Code font): ...
65 views

### How to replicate graphic output of GraphData with Graphplot?

I am trying trying to represent a Sierpinski sieve using GraphPlot. The plot I want to get is the standard representation of a Sierpinski triangle, which is the output generated by Mathematica ...
188 views

### 3D Ternary Plot - Triangular Prism?

I'm new to Mathematica and I am using it as a free trial online. I am doing a biology experiment, varying the composition of people's diet and seeing the effect of that on sleep. Because I am varying ...
35 views

### Rewrite ListPlot using Graphics while perserving point color?

I have a lot of data points, and I have noticed that plotting using Graphics is usually much quicker than plotting with ListPlot. The problem is I am trying to color the data points based off some ...
98 views

### How to remove the cap of a sphere in and chose the side where it cuts

How can I remove the cap of a sphere in graphics ? Graphics3D[{Red, Sphere[{0, 0, 0}, 5]}, Axes -> True, PlotRange -> {{-10, 10}, {-10, 10}, {-10, 10}}] I'd ...
591 views

### Area/Volume of a 2D/3D object as it is filled up with water

How could I get the volume of water on a region as it is filled up with water from below? Assume gravity points in some appropriate downward axis like -y (or -z in 3D) so the water fills upward from ...
81 views

### My plot is so tiny (and buggy)

This is a very weird question, I'm plotting impedance and admitance using parametric curves This is my code ...
45 views

### Plots dashed when I don't specify them to be dashed?

I was plotting a function (F here) with selected values, and just wanted the plot to be solid lines with the selected colors specified with PlotStyle: ...
78 views

### How can I label these three circles as A, B, C?

I have this code (based on that of flinty in his/her answer to Can one employ Disk with symbolic arguments in equations--and, if not, how might the equations in question be formulated?) ...
77 views

### Placing labels “around” a GraphicsGrid

I have the following code, which produce the image shown. ...
79 views

### Can this 2D-Venn diagram code--involving Disk--be “upgraded” to a 3D one, involving Sphere?

At https://wolfram.com/language/12/improved-visualization-labeling/venn-diagram.html?product=mathematica one finds the code ...
74 views

### Create a Venn and/or related diagrams given the eight atoms of a three-set (A,B,C) 256-dimensional Boolean algebra

In my recent answer to How can one expand an arbitrary boolean combination into the $2^n$ atoms of the associated boolean algebra of size $2^{2^n}$?, for the eight atoms {G[0],G[1],G[2],G[3],G[4],G[...
37 views

### GeoListPlot - How can I create edges between points on a GeoGraphic object by clicking on them?

I'm attempting to use Mathematica to manually create a graph from a set of GPS coordinates (vertices). This graph will define the paths an autonomous rover will travel along. Here's what I have so far ...
92 views

### BarChart3D with continuous data along one dimension

I'm trying to find an option for BarChart3D (or some other 3D plotting function) which will allow me to visualize a set of data which should be continuous (i.e. interpolated) along one dimension, but ...
141 views

### Raytracing using Regions & NSolve

I want to use geometric shapes in Mathematica to build complex shapes and use my raytracing algorithm on it. I have a working example where we can get the intersections from a combination of a ...
26 views

### Problem with opacity in 3D plot [duplicate]

I'm trying to plot surfaces with PLot3D but when I set the opacity below 1, I can't see the surfaces anymore. So I tried with the examples from the documentation (Plot3D[Sin[x + y^2], {x, -3, 3}, {y, -...
75 views

### writing numbers inside a plot using epilog

I need to write infidelity number $\bar{F}=6.82\times 10^{-6}$ inside a plot. I tried using Epilog with TeXForm but could not succeed. It prints $\frac{1}{10^6}$ instead of $10^{-6}$. Any help? Thanks....
83 views

### How to labels for each point in a list of arbitrary length?

I am attempting to illustrate a mapping from an isoparametric space to a parent (x-y) space for a variety of finite element types. Here we consider the simplest case of a three noded triangular ...
95 views

### How can I use Lighting for specific surface of a 3D object?

Graphics3D[{Cylinder[{{(-0.1 + 10.128)/2, (13 + 1.3)/2, 0}, {(-0.1 + 10.128)/2, (13 + 1.3)/2, 0.001}}, 3.2]}, Lighting -> {{"Spot", Red}}] I would like ...
62 views

### Construct a binary tree where nodes are labeled according to given rule

I want to plot a binary tree in Mathematica where the nodes are labeled according to a given rule. In fact, whether a node has a left child or a right child or both, will be determined by a rule. And ...
22 views

### Graphics3D insert a object at specific point and rotation

I am struggling in adding an object to a Graphics3D and instert it at a scpecific position and orientation that will change later with manipulate. I have tried with Rotation function but with not much ...
41 views

### RegionPlot3D is giving wrong plot

I am seeing discrepancies between plots obtained for same region using Region and RegionPlot3D, When I use ...
43 views

### Help editing Graphics primitives in a variable

I have a variable pent with an InputForm like below and I would like to drop selected ...
39 views

### GraphicsGrid resizes plot when using SpanFromLeft

When I run the following code ...
97 views

### HatchFilling exports as non-vector graphics

As of version 12.1, there is an interesting new function to perform object pattern filling: HatchFilling It works great, but it seems that any graphics containing ...
33 views

### Get coordinates of points after Translate[]

Suppose I have some small set of points Pts in 3D space: ...
73 views

### Rounding corners of lines

I can easily produce rectangles with rounder corners using RoundingRadius. However, I am unable to do for an open curve ...
50 views

### Issue in DateListPlot in version 12

We have the following example ...
93 views

### Crop a Pentagram with a Pentagon

Is it possible to crop a Pentagram to a Pentagon region? I would like to remove the tips in figure 1 so it looks like figure 2. . Figure 1. ...
62 views

### Need help understanding Graphics Translate

I created a star pattern that I was trying to apply to a circle of pentagons, but the Translate had a slight offset, and I don't understand why. When I drew the ...
112 views

109 views

### How to draw a colored curved shape

I can draw a polygon with a curved edge using B-splines or BĆ©zier curves: ...
59 views

### What's the right way to export a DXF file in Mathematica?

I have exported a DXF file from Mathematica and I am trying to import it in AutoCAD. The file that has been exported is output of a command like the following ...
142 views

### How to solve trisecting a pentagon

I thought maybe I could learn Mathematica to help me trisect a pentagon. I can't figure out how to write a Solve to get d0 on <...
939 views

### Face Morphing with Mathematica

Can Mathematica be used to produce animations of face morphing (as described in wikipedia? This is a self-answered question because I felt there was a lack of resources on this topic, to share funny ...
24 views

### Problems exporting graphs with descriptions to raster image files

I'm generating graphs with descriptions for upload to a website that only accepts raster image files. I can produce what I'm looking for in Mathematica 12.0's font-end using either ...
152 views

### Find a continuous map between two sets of 2D points

Given two sets of points in 2D points1 and points2 inside a rectangle, I would like to find a continuous map ...
34 views

### How to use “Style” properly with “ListPointPlot3D”?

Using MMA 12.0 on a Windows 10 machine. I am trying to plot a list of points in a 3D plot. Each point has a different weight which I want to show using different point sizes. The points are also in ...