Questions tagged [plotting]

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

10,006 questions
183 views

Varying the size of dots in a plot according to information contained in list

Suppose I have the following coordinates that I want to plot: ...
131 views

Solving a second order ODE with ParametricNDSolveValue

I am trying to numerically solve a nonlinear ODE on the interval 0 to R, using ParametricNDSolveValue. The boundary conditions ...
35 views

Label with a formal part and a computed part

If would like to print $\left(\frac{b}{a}\right)^2$= (b/a)^2 inside a plot or a graphics where a and b have been seted to certain values so the first part is analytic and the second part (after the =)...
226 views

Is this a bug in plotting step functions?

The following simple code generates a flawed plot: ...
56 views

Consecutive PlotStyle across multiple plots

Problem I would like to use consecutive PlotStyles (e.g. from ColorData[...]) across different ...
28 views

What is the correct way to use OpacityFunctionScaling with DensityPlot3D?

I am trying to plot solution of heat PDE in 3D. Inside a cylinder. To do this, I am using DensityPlot3D. But I am having hard time getting the colors to show in ...
38 views

Using “Show” in an interval

I have plotted two functions as below: ...
48 views

How to show specific points in a graph? [closed]

Someone could help me how can i show the points of max and min of this graph? I wanted they show in the graph. Thanks a lot! Like that:
47 views

Plotting Data Points Yields Strange Result

I want to plot a rather big amount of data points. About 16000 points. I'm still a newbie to Mathematica so I hope it's just a simple mistake. Heres a minimal example: ...
33 views

How do I plot the output of Solve as a function? [closed]

I have a system of equations (13 eq) and I want to solve for S. There are four solutions in terms of k and ...
37 views

Plotting data imported from Excel and overlaying it on a disk

I'm new to Mathematica and I'm trying to get the hang of plotting data from an external CSV file. The data is just x, y, z values from an experiment I ran. I would ...
50 views

How to plot solutions of equation involving Bessel functions? [closed]

I'm new user in Mathematica and I'm trying to plot the solutions of this equation $$G_{0}(r) = i\frac{H_{0}(kr)}{8k^2}-\frac{K_{0}(kr)}{4\pi k^2}$$ where $H_{0}$ is the zeroth-order Hankel ...
63 views

Help with solving a PDE and plotting its solution

I have trouble with solving the PDE with periodic boundary condition, which appears to be stiff somewhere, so I tried "StiffnessSwitching". But the code still doesn'...
76 views

...
28 views

Plotting roots of a non polynomial function

I'd like to plot the solutions of a function f(y)=k, when f(y) is non polynomial. This is the Mathematica script I have produced so far: ...
27 views

Is is possible to plot a multilayer network?

I would like to generate and plot a network of networks, otherwise known as a multilayer network. That is, I have one network of type A nodes with type a links. I have another network of type B nodes ...
114 views

Cycle through MeshStyle directives in ListLinePlot

I would like to specify my own mesh styles for successive data rows within a single ListLinePlot. The Wolfram reference for ...
34 views

Plot function with many conditions

I'm trying to plot the two-variable function below. (1-4/3*d4)/(1-d-d4) where 0<d4<3/4 and ...
51 views

Magnetic field for certain distance

I have a question in theoretical physics. I have a magnetic field created by conductor loop bz = (\[Micro] i )*8/(5 Sqrt R); with distance D = 2b and would ...
53 views

ContourPlot3D not wotking for slicing z axis in the ranges of 10^-13

I am using ContourPlot3D to obtain a slice plane at z = constant. However I find that the plane's position is not moving when the range is of the order of 10^-13. I am using the following code. ...
29 views

Plotting with RegionFunction without explicit function variables

Before updating Mathematica license to version 12, I was able to exclude regions of plots (in Plot, Plot3D, ...
40 views

Discolored ComplexPlot ColorFunction [closed]

I have this code. ...
29 views

ListPlot not plotting

Why does the following output from a Sow/Reap not plot? ...
62 views

Cut a slice at z in 3D plot in Mathematica

I am trying to cut a slice on z axis in a ContourPlot3d but I am unable to see any change in the slice plane. I am using the following code: ...
31 views

Plotting a single point with ListPlot gives strange outcome

I have the following simple coordinate, which I am trying to plot: xy = {0, 0.963738} I am trying: ...
66 views

How to make ternary Plot 3D in a different situation?

Owing to xzczd, I could make ternary plot with the following code: ...
85 views

Data plotting: problem with coloring the plots

I have a data to plot in the form of {x,y,f(x,y)}. Essentially, I have two curves (to be precise, surfaces). I want different colors for each surface. But I'm failing to do so. Here is my datatoplot: ...
35 views

Customizing contour labels in ContourPlot

I have a contour plot. I want to make some changes in the contour labels. I want them to place along each contour in white color. Here is my code ...
45 views

Color scheme problem

I have a problem in the color scheme in a 2D spectra. After a lot of calculations, i can generate a picture like this in the last part using this instructions ...
46 views

Problem with a plot

I have a function which has a dependency on x alone. I wanted to find the roots of this equation, so I tried plotting the equation, but I am getting the error "integer expected at position 2 in Surd[0....
94 views

Mark region of a plot by a rectangle

I want to make a series of plots, each of which will show a zoomed on region of the plot before. So that everything is easy to understand, I want to mark the region which will be seen in the next ...
43 views

Problem with MaTeX PlotLabel

I'm trying to label a plot as follows: ...
64 views

ListDensityPlot3D not working with spherical data

I'm trying to make a density plot of some data on a solid sphere, but I couldn't get ListDensityPlot3D to plot anything. I think there's something I'm missing, as I ...
311 views

Plot Taylor–Couette flow ilustratation plot

I am trying to plot a set up for a classic problem of physics of fluids using Mathematica, see Wikipedia for a reference. The problem is the movement of two concentric cylinders with two radii and ...
115 views

Plotting a rectangle with a heat map

Consider the two table set below t1= {0.44, 0.62, 0.77, 0.87, 0.93, 0.96, 0.98, 1} t2= {0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25} how can I create a plot ...
65 views

Plotting different parts of different lists of data

Suppose I have the following data: x = Range; y1 = N[RandomInteger[100, 15]/100]; y2 = N[RandomInteger[100, 15]/100]; y3 = N[RandomInteger[100, 15]/100]; ...
99 views

Plotting step functions with filling option

Try plotting several step functions and filling the space between the first function and the axis. Unwanted vertical lines appear. Making things worse, these vertical lines are colored in the color of ...
32 views

Plotting a specific row and a subset of this row's columns

I have the following data. Now, I not only wish to plot a specific row of the data, but also a subset of the columns in the chosen row. I can work out the first part, but plotting a specific part of ...
910 views

What problems does SciDraw still solve?

I came across SciDraw (link) that can be used for preparing scientific figures with Mathematica. It seems the latest version was in 2015 (link). What are the main problems that SciDraw still solves? ...
48 views

Sampling Standard Deviation

Here I found a formula for the sample standard deviation: http://mathworld.wolfram.com/StandardDeviationDistribution.html Here is my simulation: ...
41 views

How can I change the gap between a plot's frame and its legends?

How can I change the gap (marked by the double arrow below) between a frame and a plot legend? ...
82 views

Plotting a circle that can move up and down the y-axis

How can I create a circle for the equation $\qquad x^2+(y-a)^2=9$ where $a$ is a parameter. I want to plot this curve with a slider $(a)$ in Cartesian coordinates (better with axes). If possible, ...
650 views

How to plot an unstable attractor?

I'm trying to solve and plot the following in Mathematica: ...
45 views

Plotting the percentage difference between two curves

I would like to plot the percentage difference between the following functions: ...
115 views

Light beams reflecting from parabola

How can we show the paths of three light beams in Mathematica which bounce back after hitting the parabola, in a single plot? Suppose we have the following code ...
65 views

Why isn't the arrow displayed when I use Show? [closed]

I have been trying to combine two plots using Show. Everything looks fine, but the arrow from one of the plots does not show. What am I doing wrong here? ...
111 views

Mathematica just takes infinite time to solve this

Can You help? I don't even care about the exact solution. I will be satisfied by the series expansion of the result around a=0. I tried to solve by series expansion and the same result .. infinite ...
121 views

Filling between two arrays with ListPointPlot3D

I would like to Plot two Arrays and use the function Filling to generate a soil layer: ...