Questions tagged [plotting]

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

7
votes
1answer
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: ...
4
votes
2answers
231 views

Is this a bug in plotting step functions?

The following simple code generates a flawed plot: ...
1
vote
1answer
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 =)...
2
votes
1answer
61 views

Consecutive `PlotStyle` across multiple plots

Problem I would like to use consecutive PlotStyles (e.g. from ColorData[...]) across different ...
1
vote
0answers
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 ...
0
votes
1answer
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 ...
0
votes
2answers
39 views

Using “Show” in an interval

I have plotted two functions as below: ...
0
votes
1answer
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 ...
3
votes
1answer
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'...
0
votes
0answers
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 ...
0
votes
1answer
77 views

Plot the ellipse in Mathematica 12.0

...
0
votes
1answer
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: ...
9
votes
1answer
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) ...
0
votes
0answers
67 views

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

Owing to xzczd, I could make ternary plot with the following code: ...
8
votes
2answers
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 ...
1
vote
0answers
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 ...
1
vote
2answers
56 views

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

I have a list data just like following: ...
1
vote
1answer
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 ...
0
votes
1answer
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[5] R); with distance D = 2b and would ...
0
votes
1answer
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: ...
2
votes
1answer
41 views

Discolored ComplexPlot ColorFunction [closed]

I have this code. ...
0
votes
0answers
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, ...
6
votes
3answers
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: ...
2
votes
2answers
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: ...
0
votes
1answer
30 views

ListPlot not plotting

Why does the following output from a Sow/Reap not plot? ...
0
votes
1answer
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: ...
1
vote
3answers
65 views

Plotting different parts of different lists of data

Suppose I have the following data: x = Range[15]; y1 = N[RandomInteger[100, 15]/100]; y2 = N[RandomInteger[100, 15]/100]; y3 = N[RandomInteger[100, 15]/100]; ...
4
votes
3answers
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.
1
vote
1answer
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 ...
4
votes
1answer
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 ...
0
votes
0answers
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....
2
votes
1answer
43 views

Problem with MaTeX PlotLabel

I'm trying to label a plot as follows: ...
0
votes
2answers
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 ...
4
votes
1answer
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 ...
4
votes
3answers
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 ...
20
votes
8answers
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 <...
6
votes
2answers
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 ...
3
votes
3answers
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 ...
1
vote
1answer
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. ...
0
votes
0answers
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 ...
0
votes
1answer
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? ...
16
votes
2answers
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? ...
0
votes
1answer
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, ...
8
votes
1answer
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....
1
vote
1answer
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: ...
3
votes
1answer
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? ...
6
votes
2answers
660 views

How to plot an unstable attractor?

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

Plotting the percentage difference between two curves

I would like to plot the percentage difference between the following functions: ...
1
vote
0answers
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 ...
1
vote
1answer
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? ...