# Questions tagged [plotting]

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

15,777 questions
Filter by
Sorted by
Tagged with
4k views

### Why is ContourPlot not displaying this curve?

I am using the general form of a second-degree plane curve: $$Ax^2+2Bxy + Cy^2+2Dx + 2Ey + F = 0$$ I want to randomly generate plane curves of this form, so I am using ...
57 views

### Which of the given codes $p1,p2,p3,p4$ is the correct one for imposing assumption in ContourPlot3D using RegionFunction?

I am using ContourPlot3D for the condition f[x_, y_, z_] ==0 assuming that the assumption ...
221 views

### How to get a black transparent background in Plot3D?

Is there a way to manually make a black transparent background like the one in the Marketing theme? As an example, let's say I have the following code: ...
36 views

### x-axis start not from line Y=0 [closed]

I want to make a plot like this: ...
1 vote
76 views

### Is there such a thing as a half-space or partial space in Mathematica?

My boss has asked me to use the font Calibri for a publication plot. I'm running Mathematica 9, which is quite an old version. In the following example plots using ...
303 views

### Visualizing the reverse pyramid in a good way

I'm trying to draw, for a series of multivariables functions, both the surface plot and the level curves. I am using the following code: ...
1k views

### Divide a geometric region by (many) lines

Given a shape (e.g., a rectangle, a circle, etc.), how to divide it by $n$ randomly chosen lines. It is trivial to plot those lines (see figure below), using code like ...
877 views

### How to separate the regions enclosed by curves?

There are three arbitrary curves that defined by three implicit functions. How to separate the 12 regions(one of them is the outside infinite region) Although we can use image methods to distinguish ...
1 vote
201 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 ...
96 views

### How to evaluate conditional roots in ContourPlot3D?

I have the following Mathematica code: ...
293 views

### Marking circle centres with + and x

This is probably quite a simple question, but I am looking to plot these circles and mark their centres with + and x markers, not the standard dot-like marker. Any help would be great! Thanks! ...
54 views

### Mathematica 13.3 - Bug: Incorrect markers in ListStepPlot with option PlotLayout->Stacked

To reproduce - just take example from help and add an option PlotLayout -> "Stacked": ...
156 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]}]. ...
410 views

### How can I build a cycled curve from three orientable Bezier curves and fill the curved region?

The desired result is ...
54 views

### Third Y Axis Mathematica

I was wondering what's the best way to create a plot with three data sets with 3 separate y axes. The best I can do is plot my three data sets onto one plot, overlay the frames for 2 of them and then ...
105 views

### Is it necessary to call ComplexExpand in a Plot? [closed]

I need to plot $|f| = \sqrt{f f^\star}$ where $f$ is a function, and $f^\star$ is its complex conjugate. Question: how should I properly do it in Mathematica? Does it suffice to use Abs[f], or should ...
55 views

### Plotting the results from NDSolve using ParametricPlot

Using NDSolve, I get two functions (it's a system of 2 equations). I can plot them individually: However, when I plot them using parametric plot, I get an empty cartesian plane: (as an example, ...
39 views

### How to connect several disconnected high density regions (of same color) in ListContourPlot?

Below (left) is my plot with "disconnected" high-value regions (red and blue). I want it to be "connected" (or interpolated) in regions without the data to have continuous red and ...
216 views

### Display Table output as a grid of points

I want to create a Grid or Plot (or equivalent) from the following Table: ...
114 views

### Help with plotting solution curves to the Gompertz equation

I'm relatively new in Mathematica. I already checked this post: Need code for differential equation analysis $\dot{x} = rx \ln \frac{K}{x}$ but it doesn't seems to help me. I apologize in advance if ...
90 views

### Problem with Epilog and GridLines

I have plotted some logarithmic curves using LogLogPlot. In this case, I wanted to add two vertical lines to the plot; I used Epilog, but it seems that it does not work with LogLogPlot. Instead, I ...
1k views

### ListContourPlot and ListContourPlot3D use better interpolation for arrays of values than for lists of tuples (i.e. {{x,y,z,f[x,y,z]}..}

From reading the documentation, it seems that ListContourPlot3D should work equally well on an array versus a list of tuples, ?ListContourPlot3D ListContourPlot3D[...
54 views

### Determine numerical values for PlotRange when using Plotrange->All

Say I create a plot using Show and use the option PlotRange->All, for instance ...
3k views

### Early computer art - reproducing Georg Nees "Schotter" and "K27"

Georg Nees (1926 - 2016) was a pioneer of computer art. He studied mathematics, physics and philosophy in Erlangen and Stuttgart. In 1977, he was appointed Professor of Applied computer science at the ...
474 views

### How to remove artifacts in Plot3D?

Consider the following code Plot3D[ArcTan[x/y] + ArcTan[y/x], {x, -1, 1}, {y, -1, 1}] Is it possible to remove the "dragging" artefacts observed at the ...
2k views

### How to use Charting`ScaledTicks?

I found several topics about the undocumented ScaledTicks function and tried to use this. Here is the first example: ...
62 views

### Peak Appearances in Plot Outputs from Optimization Routines

Dear fellow researchers and Mathematica enthusiasts, I've been working on a computational physics problem and encountered an interesting issue regarding the appearance of peaks in my plots, which I ...
89 views

### Plot colour change!

I am trying to change the colour of the 2 curves on this contour plot. I am not very familiar with Mathematica yet, so any help is appreciated. This is the copy and pasted code and the picture is ...
196 views

### Colouring Bifurcation Diagram

I need to plot the bifurcation diagram for the function given below. g[x_, r_] := 6 x^2 + r x^4 + x^6 Plot[g[x, -4.9], {x, -2, 2}] Bifurcation Code for ...
64 views

I have compiled a set of points organized into three columns. I aim to generate a contour plot using data from the first two columns, thereby associating them with the corresponding values in the ...
2k views

### How to label maximum and minimum points on a DateListPlot

I have a list of data points acquired once per day. I want to plot this list of points in Mathematica such that the maximum and minimum points are identified by e.g., a ...
248 views

### Generating vector plot with curved arrows

Example below renders "A", it's rotated version, and displacement field. However, the arrows are straight instead of curved. What is the easiest way to get the curved version? ...
44 views

### Issue when combing Plot and ArrayPlot using Show

I'm trying to place the graph of a function generated by using Plot e.g., ...
127 views

### Is it possible to make a phase portrait of this system?

I need help with this problem: I have this ODE system For this system, manually, I calculated the stability points, eigenvalues, and Jacobian matrix for a range of ALPHA values (I considered those ...
3k views

### How can I make hatching filling of plot?

How can I make a hatching filling of the plot? Like this: I used another plot with shifting to make the filled area above: ...
118 views

### How to remove unwanted branch from a ContourPlot3D?

I have the following Mathematica code: ...
599 views

### Generating a random walk that can move right, left, up and down

Suppose that we have a dice with 4 faces. If the dice lands on: the person will move to the right the person will move to the left the person will move upward the person will move downward The ...
178 views

### How to plot equally distance points inside 2D region?

I have these two codes: (1) ...
200 views

### Why does the exported video still have control buttons, causing the screen to be too large?

towerofPisa = ; gali = ; ...
1 vote
57 views

### Issue when exporting Polygons in PDF

Consider the following code ...
71 views

### How to Plot in a tiny interval, avoiding "must have distinct machine-precision numerical values" error?

Edit even simpler example which appears impossible to make work: Plot[x, {x, 1, 1 + 10^-13}] The following code fails with ...
88 views

### How to automatically draw the solid point and circle not including this point at the interval discontinuity point of the piecewise function image?

How to make the segmentation function automatically draw the correct function image at the break point? Through the above problem post solved the problem of software drawing solid line at the interval ...
53 views

### Highlight points in ArrayPlot in the same way that it happens to DensityHistrogram

I was wondering if there is any way to highlight the values in ArrayPlot in the same way that it is possible for DensityHistogram. Something along the lines of the plot below but in cases where I ...
165 views

### How to make the segmentation function automatically draw the correct function image at the break point?

The function is: We know that f[x] is an even function defined on x < 0 And x > 0, when x > 0, ...
63 views

### Plotting real spherical harmonics with SphericalPlot3D - odd functions overlap themselves, even functions ok [duplicate]

I want to reproduce plots of real spherical harmonics as shown on Wikipedia. I used: ...
60 views

### How do I make a plot for $\sum_{i=1}^{\infty}2\eta_i^2 sech^2(\eta(x - 4\eta_i^2 t - x_i^0))$?

I would like to replicate a figure similar to that shown above. However, in my attempt for naively plotting two such "pulses", I get a single pulse. Why? ...
40 views

### Expressions in PlotLegends

When the order of the Bessel function is negative, it will automatically be evaluated in PlotLegends. ...
283 views

...