Questions tagged [plotting]

Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.

Filter by
Sorted by
Tagged with
0 votes
0 answers
31 views

Parametric surface with texture and mesh

The following code maps a parchment texture on a parametric surface: ...
0 votes
1 answer
125 views

Plotting a function with restrictions

I am trying to plot the following $U_a=\frac{wXn_l}{n_a}+H$ as a function of $s$ which is given by the expressions below, where I assign values to the constants ...
0 votes
1 answer
201 views

How to reduce the spacing between legend in plot?

I would like to know how to reduce the vertical spacing between the legends in the PlotLegend option. In the answer to this similar question in How to change the spacing of line in legend? it suggests ...
1 vote
3 answers
57 views

Plotting a function of $x$ for various values of parameter $a$

I need to plot the function a^x where the parameter a takes on values a={2,1,1/2,e}. So far ...
1 vote
2 answers
65 views

A horizontal line associated with two combined `BarChart`s [closed]

I have two BarChart: ...
8 votes
2 answers
202 views

How can we stop ListDensityPlot to show results outside data range when using InterpolationOrder -> 0?

I have this data b = .1 {{1, 1}, {0, 1}}; pts = Tuples[Range[-20, 20], 2] . b; data = {#[[1]], #[[2]], Sin[#[[1]] #[[2]]]} & /@ pts; I would like to use <...
0 votes
0 answers
30 views

Abnormal data at the boundary using ListDensityPlot [duplicate]

I have a set of data in the format of {{long1,lat1,data1},{long2,lat2,data2},.....}. Sample file can be found here. When I plot the data using ...
0 votes
2 answers
84 views

Plotting Two ListDensityPlot3D Plots Together

I would like to plot two ListDensityPlot3D plots in the same plot. My two data sets are intersecting, and I would like to see that the two shapes intersect. However, when I plot them only one is ...
2 votes
1 answer
63 views

How can I Show a text box together with a log-log plot?

I would like to show a log-log plot together with a text box. I tried Show[LogLogPlot[x, {x, 0, 1}], Graphics[Text["My text", {.5, .5}]]], but I don't see ...
0 votes
1 answer
40 views

Improving quality of plot with bad numeric performance

I have a plot which suffers from poor numeric accuracy, any tips on how I can improve the quality of this plot? ...
3 votes
1 answer
106 views

How to change the styles of Real part and Imaginary part in ReImPlot using ReImStyle?

I have following code, ReImPlot[(2 + 3*I)*x + (4 + 5 I), {x, 0, 3}, ReImStyle -> {{Dashed, Red}, {DotDashed, Red}}] This will created the plot that looks like ...
2 votes
0 answers
35 views

How to fix a graphical bug in v. 13.0.1?

How can I fix this graphical issue? My code only plots a basis reference frame and a rotated reference frame. The arrowhead of the Z axis is the issue ...
0 votes
0 answers
33 views

How to plot solution and approximate solution in one graph?

I want to solve a BVP $y^{\prime\prime}(t)+y^{2}(t)-t^{4}-2=0$, with BCs $y(0)=0, y(1)=1$. Solving $x^{\prime\prime}=0$ with the BCs, we get the initial approximation $x_{0}=t$. The exact solution is ...
0 votes
0 answers
33 views

Plotting coordinates from an algebraic operation

I have 30 algebraic operations which look like: ...
7 votes
1 answer
247 views

How can I digitize the vector figure?

Consider the following figure in .pdf format. Its .png version is below: I would like to digitize it, i.e., e.g., extract the data for the brown curve $a\to KK\pi$. How can I do this, using the fact ...
0 votes
2 answers
63 views

Plot discrete points as curves with crossing [duplicate]

I have a list of data in the form of {x,y} (30K only). The discrete data give two curves with a cross point. ...
0 votes
1 answer
26 views

How to plot a set of coordinates with complex and real entries?

I am trying to plot the spectrum of an operator where the x-axis should display the imaginary parts , while the y-axis should show the resolvent norm. The points are : ...
0 votes
1 answer
82 views

ListPlot doesn't start from the origin

I've just started using Mathematica for one my university modules, so I tried replicating the results from our practical. I've defined a function ...
0 votes
0 answers
40 views

An unknown defect with an approach in constructing scaled coordinates for obtaining and plotting Fourier series

I am having trouble scaling a set of coordinates and generating these coordinates into stepwise functions. I start with the points from a plot: ...
1 vote
1 answer
59 views

How to digitize the figure? [duplicate]

Consider the following figure: Could you please tell me how to extract the brown curve ($a\to KK\pi$) from it (i.e. the dependence Gamma[ma]?
1 vote
2 answers
55 views

Contour plot data extraction and replacing z slices with user defined function

Let's say we have a contour plot of the following, ContourPlot[Cos[x] + Cos[y], {x, 0, Pi}, {y, 0, Pi}, ContourLabels -> True] that gives, we can extract the ...
3 votes
1 answer
65 views

How to make a plot over some external figure?

Consider the following figure: I would like to plot a test function func[ma_]=1000*ma^5 over it. Is it possible somehow to do?
0 votes
1 answer
62 views

How can I plot a function of NSolve results?

A seemingly simple question. I have an equation with a free parameter. There is no explicit solution, so I plot the numerical solutions as functions of the parameter. ...
0 votes
1 answer
159 views

Log scale for ListContourPlot when the axes have different orders of magnitude

I am trying to plot a data set (download here) in Mathematica (it's 3.9 MB and I wasn't sure how to best share it) which I then want to visualize with ...
4 votes
2 answers
230 views

Solving two equations simultaneously and ploting the result

I have: $$p_n = \frac{e^{-a/n - bn}}{\sum_{n = 3}^{12} e^{-a/n - bn}},$$ where $a$ and $b$ are unknown. I have also given: $\langle n \rangle = \sum_{n=3}^{12} n p_n = 6$. Now, I need to plot $p_n$ vs....
2 votes
1 answer
73 views

Plot3D, Constraints and Intersections

I was wondering if it is possible to start from the following piece of code ...
1 vote
0 answers
105 views

Rasterize and export 3d graphic

I want to Rasterize a 3D model, for which I need a high count of Plotpoints. I rasterize the graphic and export it as a pdf in the following way: ...
0 votes
1 answer
117 views

ParametricPlot3D with variable plot limits

I would like to use ParametricPlot3D in the following general way: ParametricPlot3D[\[Sigma][u,v],{u,0,2Pi},{v,-f[u],f[u]}]. ...
0 votes
1 answer
51 views

Problem with LegendMarkers using PolygonMarker

I am trying to use PolygonMarkers as markers for a ListPlot and its legend. However, for some reason, the legend markers get cut off and are not shown fully. Here is an example: ...
1 vote
1 answer
138 views

How to draw the images of these six functions in six different coordinate systems at one time as required?

The six functions are as follows: f1[x_] := x Log[x] f2[x_] := x/Log[x] f3[x_] := Log[x]/x f4[x_] := x E^x f5[x_] := x/E^x f6[x_] := E^x/x It is required to draw ...
0 votes
1 answer
49 views

How to find the regression line equation of these two groups of data and draw the scatter diagram and regression line?

These two sets of data are as follows: ...
3 votes
1 answer
138 views

Holes in ContourPlot3D

I have a polynomial polyHP and I put some conditions Reg on it and I try to plot it with ...
0 votes
1 answer
73 views

How to get a nice plot of the following region?

Consider the region ...
3 votes
2 answers
75 views

How to get arrowheads on vertical and horizontal lines with MeshFunctions in ListLinePlot?

I want to get such plot, using MeshFunctions ...
0 votes
1 answer
93 views

Bubbles as symbols for plots [closed]

I have been interested in using bubbles as symbols for a ListPlot. I am aware of the power of Mathematica. I think that is possible. Is there anyone who has an ...
0 votes
1 answer
72 views

Plotting No-Fermi scaling function

Given the function below How can one plot with x in the horizontal and g(x) in the vertical axis for different values of ...
1 vote
1 answer
84 views

Create a color coded ListPlot3D

I currently have a plot that I want to display in the format of ListPlot3D (as in some continuous 2D contour embedded in 3D), but the key is that I'd like to preserve this color coding I have. I am ...
1 vote
1 answer
115 views

Fit Gaussian Function Plot

These are my data, x data are in Log,and i want to find their gaussian function fit.Can someone help me to have thier Gaussian plot? ...
2 votes
2 answers
237 views

Why did this code make an error when drawing the function image? How to modify it?

...
3 votes
2 answers
174 views

How to optimize the tangent equation of a curve at a certain point?

How to optimize the tangent equation of a curve at a certain point as follows: How to draw the images of the original function, derivative function and tangent equation into the same coordinate system?...
1 vote
3 answers
125 views

Illustrate an unbounded region with RegionPlot

When plotting RegionPlot[y>=x^2,{x,-2,2},{y,0,4}] I would like to have the top boundary to be Dashed, to illustrate the fact that the region is unbounded. I did ...
0 votes
0 answers
41 views

Solving a set of an arbitrary number of coupled differential equations

I have to solve a system of b coupled ordinary differential equations of the following type: ...
3 votes
1 answer
157 views

Illustrating the central limit theorem

I'm working on this question is from Wolfram Mathematica online course. I tried my best to find the answer, still not getting it right The question is: Make a list of histograms of 10000 instances of ...
3 votes
1 answer
88 views

How to ensure that all points are fully displayed in a polar coordinate system?

I have a set of coordinates(Table[{n, Sqrt[n]}, {n, 100}]), which I then converted to polar coordinates, and I want to plot them, but the following code doesn't ...
14 votes
1 answer
302 views

One less arrow vector than asked for

Bug introduced in 10.0.0 and persisting through 13.2.0 or later. Consider the following code: ...
9 votes
3 answers
313 views

How can I create 2-colored squares to use as PlotLegends?

I'd like to generate a square similar to the one that is shown below, but instead of that, I would like solid colors on both sides, separated maybe by a thin black line in the diagonal, if that's ...
2 votes
1 answer
68 views

How to obtain the ImageSize?

I want to obtain the ImageSize of an output in printer's points, which is the standard unit of measurement of ImagePadding, ImageMargins etc. For example I have a Plot ...
1 vote
1 answer
77 views

Why is generating normalized random $1000 \times 1000$ matrices and plotting the eigenvalues so slow?

For each of the distributions $N(0,1)$ and $\pm 1$ equal probability and for each of $N \in \{5,10,20,50,100,200,1000\},$ I want to generate an $N \times N$ matrix with entries chosen from the ...
2 votes
1 answer
42 views

Desmos and mathematica outputting different graphs for the same equation [closed]

I am new to wolfram mathematica and I am trying to plot multiple functions, however when comparing to the functions on desmos, I get different results, even when copying and pasting the function from ...
20 votes
0 answers
475 views

Bug with Tooltip and ListPointPlot3D

Bug introduced in 10.0.0 and persisting through 11.2.0. Fixed in 11.3. The coordinates of a point in a three dimensional graph can be shown in a tooltip: ...