Questions tagged [plotting]
Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.
16,431 questions
1
vote
2
answers
139
views
How to change the color of the individual squares on a chessboard?
The code I have written to create a chessboard is as follows:
...
0
votes
1
answer
80
views
1
vote
0
answers
67
views
How to simply change filled-in marker with empty circles in the given code?
I use this code
p1 = Graphics[{PointSize[0.05], Red, Point[{{4, 0}, {7, 0}}]}];
p2 = Plot[Sin[x], {x, 0, 10}, PlotRange -> {-2, 2}];
Show[{p1, p2}]
which gives ...
3
votes
1
answer
99
views
How to preserve tooltips for SVG Maps created by Mathematica?
I want to produce an SVG map by Mathematica that preserves tooltips that are in Mathematica so that they are also in the SVG. The problem is that the tooltips do not export.
Here is an example:
That ...
1
vote
1
answer
58
views
Drawing a curved Tube through three given points [duplicate]
I need to draw a curved Tube through three given points.
For example,
points = {{1, 0, 0}, {0, 1, 1}, {-1, -1, 0}}
I found that ...
0
votes
1
answer
95
views
Plot labels are moved when put into Grid
I add a label to a plot on specific position, but when using Grid the position moves slightly. How to keep position fixed as in the plot?
...
1
vote
0
answers
77
views
Raytracing in Black Hole Background
I have this code working well for Q = 0. But I need to plot the image for Q > 0, any help is very appreciated.
...
1
vote
1
answer
90
views
“How to Fix Degenerate Polygons in BoundaryMeshRegion When Sweeping a 2D Rotor Profile in 3D”
I am generating a 3D rotor model by sweeping a 2D profile around the z-axis while applying a variable lead translation.
The goal is to create a smooth helical solid based on rotor geometry and a lead ...
0
votes
0
answers
98
views
Plot shows expected curve, but expression cannot be evaluated
I have the following expression in Mathematica:
...
0
votes
2
answers
126
views
How to insert error bars and a fitted line in a log–log plot?
I have a dataset organized as {time, velocity, upper error bar, lower error bar}.
I want to plot velocity vs. time with error bars and a fitted line, both in log–...
1
vote
2
answers
136
views
Speeding up plotting of a large Directed Acyclic Graph
I have a large DAG that I'm trying to visualise. It's the history of a large (~350k+ commits) git repository with multiple separate origin points. I've tried using a handful of different graph layout ...
4
votes
2
answers
370
views
Fluctuating results with NIntegrate
I've been trying to calculate an integral using NIntegrate as follows.
...
0
votes
0
answers
29
views
Importing a two-column file to plot its data [duplicate]
Suppose I have a number of data files, each of which has two columns. The first column is the x-coordinate data, and the second column is the y-coordinate data. What format can I use in Import to ...
2
votes
1
answer
102
views
Wrong labels in contour plot involving Logs
I am plotting this contour map Mathematica (Version 13.0.1):
...
3
votes
1
answer
187
views
Suggestions for plotting function of two variables and a parameter with a constraint in the form of an equation
This has come up in my physics research. Suppose I have a family of curves in the xy plane of the form
f(k)*x^2+g(k)*y^2=h(k),
where the functions f, g, and h depend on a parameter k with a known ...
1
vote
0
answers
83
views
Manually programming parula colormap for family of curves [duplicate]
In an attempt to graphically present my research, I wish to plot families of curves in the xy plane. The curves depend on a parameter, p, that ranges from 0 to some positive constant, k. I want to ...
3
votes
0
answers
111
views
LinTicks from CustomTicks not working in version 14.2
I am using the following sample code from the documentation of CustomTicks (release 2.1.1 from August 2020) in Mathematica 14.2:
...
3
votes
1
answer
275
views
How to make the frameticks point outward?
I'm plotting a figure, and the codes is the following:
...
1
vote
1
answer
162
views
Contour plot for streamlines
I wish to plot the streamlines for the function f[l_, z_]. However I do not know how I can get rid of the Integrate::ilim error. ...
3
votes
1
answer
142
views
Matching default plot styles of several ParametricPlot3D-s in Show
Suppose you have five different plots in one ParametricPlot3D with default style for each.
Then you want to add another ...
0
votes
0
answers
66
views
Export BarLegend as pdf
I am trying to export a ContourPlot with a Barlegend to pdf. Here's the simplest example (just the legend)
...
0
votes
0
answers
72
views
Controlling Placement of Text Bubbles on TimeLinePlot
I am creating a TimeLinePlot with text bubbles connected to the time interval lines. The option PlotLayout -> "Stacked" ensures the interval lines do not overlap but I can't figure out ...
3
votes
1
answer
186
views
4D plot - how to change the color using Hue in plot and Lagend bar?
I am trying to plot the 4D Poincaré surface of section, using Hue, specifying one dimension with the color. I have pasted my code below
...
4
votes
1
answer
155
views
Non linear GPE With Imaginary Current Nonlinearity
I want to solve the Equation 22 and generate fig 3(a) given in the paper https://arxiv.org/pdf/1812.04672.
...
1
vote
0
answers
162
views
Geodesic Plotting
I am trying to reproduce figure like FIG. 1 in https://arxiv.org/pdf/2507.14565.
The following is my code which does not work well. Any help is very appreciated.
...