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.

Filter by
Sorted by
Tagged with
6
votes
3answers
250 views

Reverse color of overlapping points?

Is there a simple way to change the color of the region where two Points overlap? For example in ...
2
votes
2answers
116 views

Plotting 3D energy bands

I'm having a problem trying to plot a 3D energy band structure. Having a function of 3 variables (energy) for example: f[x_,y_,z_]:= Cos[x]+Cos[y]+Cos[z] What i ...
0
votes
0answers
63 views

Results visualization in Mathematica? [on hold]

I run an experiment $100$ times. The system has $30$ users, all with some demand. The service center has $4$ service stations/outlets. A user can be served by one or more (all four) service stations. ...
3
votes
0answers
51 views

Obtain complete list of built-in graphical objects, and split them into groups?

I would like to obtain the complete listing of built-in graphical objects (which can be used in Graphics or Graphics3D) ...
1
vote
0answers
32 views

ListSliceContourPlot3D plots Blanks with List1 and plots perfectly with List2. List1 == List2. Mathematica Version 10.4

I'm trying to do ContourPlots using the Function ListContourPlot3d. I have generated List1 and List2 using the following code. Here is the preliminary code to generate List1 and List2. ...
4
votes
1answer
86 views

Is it possible to use RegionFunction with Graphics3D?

I am using Graphics3D and I would like to use RegionFunction to exclude specific regions as in Plot3D but I could not. Here is ...
4
votes
1answer
78 views

Is it possible to get current thickness for every Line, Polygon, Circle object in a plot?

When exporting Mathematica graphics to raster formats with high resolution the common problem is that thickness for such objects as Line, ...
10
votes
5answers
492 views

Grainy 2D RegionIntersection Plot: How can I make it smoother?

I have the following code to display three coloured disks and their coloured intersections. However, the result does not appear to have been anti-aliased enough. How can I make it smoother? ...
4
votes
1answer
79 views

Ideas for styling graph nodes with weights

Suppose we have the following random graph SeedRandom[100] n = 15; m = 20; G = RandomGraph[{n, m}, VertexLabels -> "Name"]; and a list of weights for the ...
2
votes
0answers
28 views

Tick marks don't follow FrameStyle/FrameTicksStyle specs [duplicate]

Run the following code and examine the thickness of tick marks carefully in the produced PDFs. ...
1
vote
2answers
77 views

Animate Graphics3D plotting with color gradient

This is a bit of a two part question about optimizing some 3D plotting - it's pretty straightforward but after a while struggling with it I haven't made much headway. Assume some list of 3D points, i....
0
votes
0answers
17 views

The problem in finding a connected path through square lattice

I have a LxL square lattice. I randomly chose some points on this lattice and take them as my points. I want to find a connected path from left(0) to right(L). Below is my code: ...
0
votes
0answers
31 views

Mapping a flat unit plane composed of polygons onto a cylinder

I'm looking to map a flat plane composed of triangles onto a cylinder, and then ultimately use a manipulate function to show the plane wrapping into a cylinder. Here is the code I have so far, I've ...
0
votes
1answer
60 views

Two animations on the same ListAnimate plot

I have a code that produces two lists to be animated using ListAnimate and I want to have these two animations taking place on the same plot but I can't see a clear way to do this and was wondering if ...
1
vote
1answer
45 views

Can I label a point in a Plot3D? and how

This question comes after I received some nice answers of yours, concerning the labeling of intersection points of two curves in the , see hereHow to label intersection point in Plot The answers I ...
2
votes
1answer
43 views

How to get rid of clipping artifacts?

The following is a MWE extracted from a more complex graphic. ...
1
vote
1answer
42 views

How to make the Plot3D with colors?

I would like the make a 3D Graph with Plot3D like the following picture shows: So I write in the notebook of Mathematica the following : Plot3D[x^2 + y^2, {x, -2, 2}, {y, -2, 2}] But which option ...
3
votes
1answer
64 views

How to put a label on the intersections points

I am really new to MATHEMATICA and I am struggling to make a nice graph as follows: I am stuck a bit as I cannot put labels on the intersection points....I do not want to use the drawing pallete as ...
0
votes
0answers
34 views

How to plot a 3D function and an arrow pointing in the direction of the gradient vector?

I need to plot a 3D function and show an arrow pointing from the curve into the direction of the gradient vector. I also need to plot a ContourPlot of the level surfaces of the function, also with an ...
3
votes
1answer
65 views

How do I color edges on a graph using a pattern?

I have the following code, an attempt to color the even branches of a tree... but it’s not working correctly: ...
2
votes
1answer
61 views

Text with the same proportions as the graphic

What do I need to do to make the text keep the same proportions as the rectangle even when I increase the image size? ...
1
vote
1answer
26 views

How to delete additional line from a DXF file

Is there anything I need to add to my code so that the generated DXF file does not contain a diagonal line in the generated profile? ...
0
votes
0answers
42 views

How can I output a 3D vector picture? [duplicate]

In mathematica, when I plot with the plot3D function, the output 3D surface graphics are not vector graphics (although I have saved them in .svg format). I want to ask, how can I output a 3D vector ...
2
votes
1answer
20 views

How to specify coordinated of legend box using Show and Epilog functions?

I am trying to place the legend box using epilog function. I'm unsure where I can specify the coordinated in the sample code to specify the position. ...
2
votes
2answers
39 views

BarChart: First Bin centered at 0 instead of 1

I want to plot an overlapped graphic comparing the experimental and theoretical data of the number of counts in a given time (beta decay), so I show them in a histogram. Because of sometimes the ...
2
votes
2answers
43 views

Using PlotRangePadding given as a range with ListContourPlot

When I am trying to use PlotRangePadding with a fixed range (not symmetric with x and y axes) for a graphic generated by ListContourPlot, it is coming back with an error message that PlotRangePadding ...
4
votes
2answers
72 views

Using the Range function with the Slot (#) function

I am writing a code to display longitudinal waves. I started with the following, filling the slots using the Range function. ...
0
votes
1answer
40 views

How to use “For” or other tool to plot points in a gragh?

Try a simple example about bifurcarion. The codes in MM are as follows: ...
2
votes
1answer
71 views

Better curve fitting of sinusoids

I am trying to fit sinusoids to my experimental data of the form: $y= a+b sin(\theta)+csin(2\theta)+dsin(4\theta)$ and I am using the non-linear fit model. However I feel the data fitting is not good, ...
2
votes
1answer
33 views

How to draw different vectors in different points in a co-ordination space?

suppose I have four vectors: v1,v2,v3,v4 at the positions (1,1),(1,-1),(-1,1),(-1,-1) respectively in position space in xy plane and the two dimensional components are (0.5,-0.5),(0.75,0.1),(0.4,0.6),(...
0
votes
1answer
55 views

Editing the graphic generated by ListDensityPlot

I have generated a graphic using ListDensityPlot in Mathematica, I want to make following three edits to it, but not finding a way. Would be thankful for any advice. How to rotate the graphic. My ...
2
votes
1answer
68 views

JavaGraphics` and CreateDialog don't work with ListPlot in Mathematica 11.3/12

Bug introduced in 11.2 and persists through 12.0, case 4331202 I'm trying to see some plots based on data from a remote cluster as it runs various Mathematica 11.3/12 scripts, so I want to use the ...
4
votes
2answers
384 views

Drawing a sequence of circles

For every natural number from 1 to 150, draw a circle centered on the x-axis in that number and with the diameter equal to the number of divisors of the number. I don't know what should I do.
1
vote
1answer
48 views

Adding units to frame label

I have this code: ...
4
votes
2answers
85 views

How to create a `BarChart[]` with color rules determined from categorical data?

Let's say I have a list of color names (strings), like this: samples = {{"blue, red, red"}, {"purple, blue, purple"}, {"blue, blue"}}; Then I can plot the ...
3
votes
1answer
51 views

How to build a movie of a chart in which Tooltip is used to display the labels associated with the points on the chart

I first need to build the following chart to explain what I'm trying to accomplish: ...
1
vote
0answers
97 views

Create a templated double gyroid with a hexagonal mesh and etched hexagonal mesh

I'm looking for a way to create patterns on the surface of 3D objects. One thing I have not been able to do is to create a hexagonal mesh on a templated double gyroid structure. What I would like to ...
0
votes
3answers
54 views

How would I plot the inequality lines together with the intersection plot of the inequalities?

For example, I've got the following code: Plot[{x >= 5, y >= 8, x + 2y <= 64, x + y <= 40}] This would plot: Now, this is fair enough. It shows me ...
0
votes
1answer
40 views

How to create a correct density plot from “NDSolve” solution?

I would like to create the projection of a solution in plane from the differential equation set solution. However, the way I did it is not as I would like it, it does not have a smoothness. Here's ...
4
votes
0answers
25 views

Change the FullSummaryGraphic size for deep neural networks

I am using the "FullSummaryGraphics" of a neural network: NetInformation[model,"FullSummaryGraphic"] After having the following result: I would like to modify ...
1
vote
0answers
50 views

Deforming a unit square into a cylinder [duplicate]

I am new to Mathematica and I am trying to create a flat unit square in the x-z plane made out of polygons with vertices that divide it into equal-length intervals on each side. Then manipulate this ...
2
votes
1answer
45 views

Equally spaced contours on a Bar Legend

The function BarLegend[{"Rainbow",{0,1}},4] should result in a bar legend with range 0 to 1 with 4 equally spaced contours. I was hoping to get contours at ...
5
votes
1answer
101 views

How to export all graphics from a notebook?

The problem I have a notebook consisting of around 50 expressions like following: data = Table[i, {i, 10}]; ListPlot[data (*, some Plot options *)] I want to ...
2
votes
2answers
38 views

Place two-dimensional Graphics object into three-dimensional Graphics3D object

I have a labelled two-dimensional Polygon that I render with Graphics. ...
1
vote
1answer
58 views

Combining graphics twice

I have a for loop that produces a few line plots. After it is produced, it is appended together, and I'm using the "Show" command to combine the plots together. As shown in the example code below: <...
1
vote
2answers
69 views

Provide a list of colours for the points of ListPlot

I want to colour the points in a ListPlot with a list of colours, i.e. something like ...
1
vote
4answers
64 views

Area-colored phase diagram for various ranges of f(a,b), given the ranges of a and b

Is there a way to plot a simple diagram in Mathematica with colored areas, like a phase diagram, for the different ranges of values of a function such $f(a,b)=(1-a)/(b+2)$, for various combinations of ...
0
votes
0answers
32 views

How to add a custom indicator to InteractiveTradingChart or TradingChart?

I'm creating a prediction algorithm for certain stocks and I wanted to plot the result of my predictor against the stock's history. I wanted to create my custom "indicator" to add to a ...
1
vote
1answer
35 views

ContourPlot a list of equations generated by the Table command

The first command below produces proper contour lines while the second command produces an empty plot. I would think that the two commands should produce the same output. What's going on? ...
8
votes
5answers
429 views

Rotating squares animation

Reference link: https://www.geogebra.org/m/RHYH3UQ8 , https://www.geogebra.org/m/xkzsqcyx , https://www.netpad.net.cn/svg.html#posts/55789 I want to generate an rotating squares animation like this, ...