Questions tagged [plotting]

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

10,044 questions
187 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: ...
231 views

Is this a bug in plotting step functions?

The following simple code generates a flawed plot: ...
36 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 =)...
61 views

Consecutive PlotStyle across multiple plots

Problem I would like to use consecutive PlotStyles (e.g. from ColorData[...]) across different ...
29 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 ...
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 ...
39 views

Using “Show” in an interval

I have plotted two functions as below: ...
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'...
38 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 ...
77 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: ...
1k views

Inconsistency in Histogram's “Probability” Binsize

Context Let me define a Probability distribution (following the documentation and with some connection to this question) ...
67 views

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

Owing to xzczd, I could make ternary plot with the following code: ...
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 ...
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 ...
56 views

How to use points data to plot 2D colorful region image?

I have a list data just like following: ...
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 ...
52 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 ...
63 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: ...
41 views

Discolored ComplexPlot ColorFunction [closed]

I have this 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, ...
835 views

Finding the centroid of a given curve

How to find Centroid of the following curve? curve = Plot[Cos[x]/(x + Log[x]), {x, 1, 8}, Ticks -> None, PlotStyle -> {Blue, Thick}] I tried: ...
88 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: ...
30 views

ListPlot not plotting

Why does the following output from a Sow/Reap not plot? ...
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: ...
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]; ...
95 views

How do you plot $y = 2x \sin x$ at the point $(\pi/2, \pi)$ with showing the tangent line $y = 2x$? [closed]

How do you plot $y = 2x \sin x$ at the point $(\pi/2,\pi)$ with showing the tangent line $y = 2x$? I can't seem to plot the point with both the sin graph as well as the tangent on the same graph.
48 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 ...
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 ...
47 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....
43 views

Problem with MaTeX PlotLabel

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

How put 3D axes labels at positive ends of axes?

As the output of the following code shows, by default Mathematica does not necessarily place the axes label for 3D graphics at the positive ends of the axes, for axes emanating from the origin. In ...
66 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 ...
117 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 ...
3k views

How can I create a rectangular graphic with curved edges?

I want to make some button shaped graphics that would essentially be a rectangular shape with curved edges. In the example below I have used Polygon rather than <...
315 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 ...
100 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 ...
104 views

Solving a system of PDEs on a piecewise polynomial domain

I wish to solve following system of equations with Dirchlet and Neumann boundary conditions on an piecewise polynomial (cubic spline) shaped domain as showed here. ...
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 ...
51 views

How can I direct the Y-axis downward and make the plot symmetrical to the X-axis?

How can I direct the Y-axis downward and make the plot symmetrical to the X-axis? ...
924 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? ...
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, ...
195 views

Performance improvement: Finite Element Mesh graphics

I have created a Finite Elements mesh on GID (quadrilateral 9 nodes elements). I exported the nodes and the elements topology and i'm reading it from the following two text files: https://www.dropbox....
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: ...
44 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? ...
660 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: ...