# Questions tagged [plotting]

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

14,983 questions
Filter by
Sorted by
Tagged with
56 views

### How to make a plot with white axes and gridlines but with black axes labels?

I am looking to discover a way to make a plot similar to this one. I found Gridlines of a framed plot with a background cannot be white? But I cannot figure out how to turn off the axes lines but ...
40 views

### ListInterpolation start from zero index: [closed]

we have a Listinterpolation: f = ListInterpolation[{1, 2, 3, 5, 8, 5}] that gives f[2.5] 2.4375 so, ListInterpolation starts ...
1 vote
226 views

### Creating an interactive plot that zooms into the function

Suppose we want an interactive plot for the code: ...
42 views

### Was there ever a package called "BinThis"?

I'm working my way through someone's old code and rebuilding it. In one of the notebooks it appears they used a package called "BinThis" which I cannot seem to find any documentation for or ...
80 views

### How to plot the derivative of a piecewise discontinuous function (by excluding discontinuity points)?

With the following code I am trying to get a plot for the derivative of the ftot1 function, which is a piecewise discontinuous function defined as the sum of other two piecewise discontinuous ...
65 views

### Automatic display of a calculated parameter in the legend of a graphic

I was struggling to find a way to display a value which I constantly change automatically on a graphic. In this case, I want to display ...
1 vote
31 views

### PlotLegends parameter with subscript and multiple of other parameter in Mathematica

PlotLegends -> LineLegend[{Style[Subscript[ω, i] t == 0, Black]] When I use this command in Mathematica 13.2, I get ...
1 vote
32 views

### Using plot on named expression and explicit expression produces different results

There is some strange behaviour in Mathematica which I don't understand. If you call a function like ContourPlot on two identical expressions (one a named expression, and the other the same expression ...
31k views

### How to graph a sphere with cartesian equations?

I'm new to Mathematica and I need to ask how to graph a sphere, cylinder, etc.. using cartesian equations. For example in sphere's case $x^2+y^2+z^2=1$ I tried to use ...
76 views

### Plot heatmap from Table of coordinates and colormap [closed]

I want to draw Table[{a, b, c}, {a, 0.1, 1, 1}, {b, 0.1, 1, 1}, {c, 11, 15, 0.05}] via heatmap in Mathematica where I choose a ...
78 views

### Combining two region as one with boundaries: combining rectangle:

If I have the following two regions: r1 = Rectangle[{0, 0}, {5, 10}] r2 = Rectangle[{5, 0}, {15, 10}] to combine them I can use, ...
54 views

### Bug in VectorDensityPlot assigning variables

Bug introduced in 12.0 or earlier and fixed in 13.2 or earlier I notice that after a call to VectorDensityPlot the variables used are assigned to random real values. This doesn't seem to happen with ...
146 views

### How is a 3D plot drawn in 2D from an arbitrary viewpoint?

I am working on a project that involves SciDraw. The SciDraw software is great for making high quality plots, but it is not compatible with any 3D plots. I need to add some relatively simple 3D plots -...
172 views

### Plot all real and imaginary roots of FindRoot vrs k

I'm looking to plot all real and imaginary roots of this cubic equation eq[x_,k_]:=x^3-5x^2+x-k as a function of a real parameter ...
90 views

### How to make frame labels like in this plot?

How to make the Frame Labels like in this plot I mean the Frame Labels are placed above the plot in different rows left and right with different colors. Also besides the plot.
131 views

### A RegionPlot bug in v11.2

Bug introduced in 11.2. Fixed in 12.2.0 or earlier. ...
62 views

### List contour plots with realistic axes

I am trying to mimic the python matplotlib contourf plot functionality in Mathematica. This is for discrete data, so ListContourPlot is appropriate. In python, the contour plot interface is: contourf(...
475 views

### How to plot Clebsch surface with those 27 lines?

I can get its Algebraic Equation by this code: ...
37 views

### How to plot a function efficiently without having to recalculate

I have to make a lot of graphs for two different functions Nzzp (which can be computed quickly without problem) and NzzG which requires three numerical integrations in a row so I'm using paralleltable ...
41 views

### Label or Callout the Index of a List or Array of Points using ListPointPlot3D

I have found several examples of Callouts and Labels using Text command and/or mapping data to plotted points both in Mathematica documentation and through various forums including this one. I am ...
122 views

### Plotting functions with a varying parameter whose range depends on said parameter

I'm fairly new to Mathematica so I'm not sure how I can achieve this, I've tried a number of ways but nothing has worked so far. I basically want to plot a function r against n for different parameter ...
250 views

### RotateLabel doesn't work?

Bug introduced after 12.0.0 and persisting through 13.2.0 or later I'm creating a really simple plot with the code attached below. However the y-axis label is rotated and parallel to the y-axis by ...
58 views

### TooltipLabel issue with BarChart3D

Bug introduced in 11.3. Fixed in 13.2.0 or earlier. Need a workaround so I can plot a tool tip that provides the bar height and in the same tool tip also gives the parts of the dataset that created ...
126 views

### ParametricPlot and ParametricPlot3D crash with subscript notation

Bug introduced in 11.0 and persisting through 11.2 or later. Fixed in 13.2.0 or earlier. In all previous versions of Mathematica, the following works perfectly well: ...
54 views

### StreamPlot fails on complex values

I've got some functions to StreamPlot that take on complex values in some of the domain. According to "Details and Options" in the manual page: ...
48 views

### Can you plot the expressions in a list without Evaluate[]?

Plot is forcing me to choose between two bad options. I have a function g that is a numerical integral which I want to plot for multiple values of a parameter. <...
1 vote
301 views

### Polar graph of the Riemann zeta function

I would like to plot a complex graph of the Riemann zeta function on the Argand diagram $ς(s)$, where $s = \frac{1}{2} + i t$, and the value of $t$ is varied to get a graph in the polar form. Can ...
102 views

### How to display several things inside graphic? [closed]

Epilog and Inset can display something on the plot, but what about several things? I used them in a simple example to place a ...
69 views

...
2k views

### Log-scale histogram bug

Bug introduced in 8.0.4 and persisting through 13.2.0 Not really a question, more a solution to what I call a bug in mathematica v8(.0.0.4). I already sent a bug report to Wolfram. Problem The ...
1k views

### Adding ContourLabels changes contour colors?

Bug introduced in 8 or earlier and persists through 11.0.1 or later. Fixed in 13.2.0 or earlier. I have an array s5 I want to plot using ...
363 views

### Customizing FrameTicks in DistributionChart

Bug introduced in 8.0 or earlier and fixed in 13.2.0 or earlier So I have been fighting with this for a while. I'm trying to get custom frame ticks on both the left and right side of a ...
624 views

Bug introduced in 8.0 or earlier and persisting through 13.2.0 In a recent posting, Belisarius solved a problem related to the display of arrows on the x and y axes by setting ...
1 vote
54 views

### Several ListDensityPlots with the same limits of ColorFunction

I have to sample and plot three functions: $f(x,y)=cos(\pi x /2)$, $g(x,y)=2-x^2$ and $r(x,y)=3x$ in the range x and y in ...
72 views

### Solving equation using mathematica

How I can solve the equation : $$R -\tan^{-1}[(m1/m3)*(k3/k1)] - \tan^{-1}[(m1/m2)*(k2/k1)]=0$$ I tried on it using findroot as following : ...
108 views

### How to give an approximation expression of a complicated expression using Mathematica?

I came across a very complicated expression as the first following picture shows, it makes normal processing such as coordinate conversion difficult, so I thought it would be nice to use an ...
110 views

### Shooting technique using NDSolve

Here I am attaching my code below. It took all the variable's values, but the graph window was empty. I am not able to recognize, where is the error exactly. Differential equations were also, checked ...
103 views

### DropShadowing PlotStyle makes Plot trace pixelated on Cloud and Jupyter. Desktop too? Why? Fixes?

Both working on Wolfram Engine + Jupyter Notebooks or on Wolfram Cloud, I see pixelated traces and axes when using the new PlotStyle...
230 views

### Implementing GeoCallout?

Building off of a related question, I'm looking for a robust way of using Callouts for multiple locations in Geography. For example, I want to plot cities and their ...
74 views

### How to rotate the curve [closed]

How can I rotate this curve It's supposed to be like this UPDATE: I would like to show the "Blue" curve instead of the "Red" Curve. Even though I changed the equation in wolfram, ...
1 vote
26 views

### Is there any way to plot / re-express this DifferenceRoot expression?

I recently performed a calculation that output the result ...
366 views

### Does InterpolationOrder cause conflicts with PlotMarkers in ListPlot?

Bug introduced in 7.0 or earlier and persisting through 13.2.0 or later My code: ...
84 views

### How to display parameters on PlotLegends?

I used the following code to generate a plot for a function with four different parameters. ...
80 views

### StreamPlot ignores some options

I am trying to plot some vector fields using StreamPlot, but I am unable to get the desired plot as some options are ignored when I add them. Here is the vector field I am trying to plot: ...
85 views

### How to plot a hazard function?

I would like to plot a hazard function when the CDF and PDF are not in the closed form. The PDF and CDF are given below ...
1 vote
67 views

### Dynamic plot with button and slider [closed]

How can I create a dynamic, interactive graph in Mathematica with buttons and sliders for changing the equation type and variables?
86 views

### How to write a Mathematica code to plot complex function in a 3D plane [closed]

f(x)=square(X)+ix. Plot a 3D plane for this complex function
1 vote
44 views

### Plot the graph with two best response functions, Mathematica

I have another doubt regarding Mathematica. This is probably another question that can be easily answered, but since I'm a beginner it's a while that I'm stuck. Since I'm using Mathematica online, the ...
1 vote