As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [plotting]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
38 views

How to Plot Specific ListContourPlot?

I would like to plot the following list ...
0 votes
1 answer
253 views

How to reduce the spacing between legend in plot?

I would like to know how to reduce the vertical spacing between the legends in the PlotLegend option. In the answer to this similar question in How to change the spacing of line in legend? it suggests ...
0 votes
0 answers
24 views

Plotting a specific dataset in a .h5 file

I have a directory that contains 30001 .h5 files. The files are sorted based on the names. Each .h5 file contains 4 different ...
1 vote
2 answers
300 views

Sorting 300K .h5 files

I have 300K .h5 files. I want to list them and plot the data with respect to a parameter. They must be sorted by name otherwise, the plot will be wrong because of time dependency. The name of the ...
3 votes
2 answers
88 views

Adjusting spacing of one row in LineLegend?

Background I have the following plot: ...
6 votes
1 answer
159 views

Remove background from VectorPlot

when I plot this VectorPlot with a RegionFunction ...
0 votes
1 answer
156 views

Comparing different ListPlot3D outputs between different data sets

I have data for the bed of a river that consists of several cross profiles over several years. I have used the elevation measurements with Northing and Easting coordinates to create ListPlot3D visuals ...
3 votes
1 answer
45 views

PlotLegends does not work with StringPadRight?

I'm trying to create a plot legend where the rows contains multiple items, and those items have the same width, so that they appears to be in column. It should work with String Pad Right but for some ...
0 votes
1 answer
50 views

`Periodogram` returning only 1/0 error

I have a large dataset and would like to get a Periodogram (I saved the data as CloudObject): ...
2 votes
1 answer
104 views

How to place several plots side by side?

I want to place multiple MatrixPlot results side by side. Here's the example code: ...
7 votes
3 answers
173 views

Adjust graphs inside GraphicsRow to be the same scale?

I want to draw a picture with GraphicsRow function in Mathematica. A simple example shows as follows ...
0 votes
0 answers
31 views

Plotting a PDF with discrete non-integer values

I can plot the PDF of a continuous distribution like so d0 = NormalDistribution[0, 1] Plot[PDF[d0, x], {x, -3, 3}] I can plot the PDF of a discrete distribution ...
4 votes
1 answer
41 views

TimelinePlot with many intervals becomes white

This is an example of a TimelinePlot with 100 intervals: TimelinePlot[Table[Interval[{0, 1}], {30}], PerformanceGoal -> "Speed"] If we ...
3 votes
3 answers
860 views

Plot a specific branch of a multi-valued complex function

Let's say I want to plot a branch of the following function $f(z) = \sqrt{z(z-1)}$. Let $z = r_1 e^{i\theta_1}$ and $z-1 = r_2 e^{i\theta_2}$. How can I tell Mathematica to plot the branch for which $...
1 vote
1 answer
49 views

Mesh as list of seperated lines

Startingpoint is the following 3D plot: ...
3 votes
1 answer
69 views

Absolute value of $1$ in PlotLegends in ComplexPlot

When using PlotLegends -> "Automatic" in ComplexPlot, it seems that Mathematica always picks some value different ...
1 vote
1 answer
125 views

Plot Generalized Heat Equation

Given the following problem $$u_{t}-\frac{v}{2}\cdot u_{xx}+\frac{v}{2}\cdot x^2 \cdot u(x)=0 $$ $$u(x,0)=f(x)$$ Where $ f(x)=y_1(x)+0.2y_4(x)+0.01y_6 (x) $ $y_n$ are the Eigenfunctions that defined ...
0 votes
1 answer
75 views

How to plot maximized values over a range under different initial conditions?

I tried to plot maximized value over a range a\in [0,1] for different initial conditions b=0.2,0.3,0.4,0.5, but it does not work. Could anyone please help to work it out? pi:=2 b + (x + y -b)(3-x)/3- ...
3 votes
1 answer
217 views

Difficulty to Solve the Generalized Wave Equation

Given the following problem $$u_{tt}-\frac{v}{2}\cdot u_{xx}+\frac{v}{2}\cdot x^2 \cdot u(x)=0 $$ $$u(x,0)=f(x)$$ $$u_t(x,0)=g(x)=0$$ Where $ f(x)=y_0(x) $ $y_n$ are the Eigenfunctions that defined ...
0 votes
1 answer
152 views

How can I use a logarithmic ScalingFunctions with ListContourPlot and DataRange? (i.e. no x- and y- inputs given)

There appears to be a bug in plotting, using ListContourPlot with ScalingFunctions->{"Log","Log"} and ...
1 vote
0 answers
43 views

How to optimize the code of drawing a region?

...
0 votes
1 answer
49 views

How to plot the derivative after indicating the value?

I have used the FEM tool to solve this PDE system with control equation and boundary conditions, after calculation the ufun1[x, y] are calculated, and I want the ...
0 votes
0 answers
87 views

Problem with bifurcation diagram for driven damped pendulum

I am using the following equation of motion for a driven damped pendulum: $$\frac{d^2\theta}{dt^2} = -\frac{g}{l}\sin \theta -\gamma \frac{d\theta}{dt} + A\sin(\omega_d t)$$ where $\theta$ is the ...
0 votes
1 answer
70 views

How to compare the numerical with the analytical solution of PDE?

Given the analytical solution ...
3 votes
1 answer
96 views

ColorFunction in SphericalPlot3D fails with ImageValue

I would like to texture and deform a sphere with with images using various mapping functions between x,y and phi,theta. I figure I should start with $f(phi,theta)=(x,y)$ as a test case. However, I ...
2 votes
1 answer
49 views

Plot elements of a time dependent matrix

The matrix that I wanna plot the elements are complicated, this matrix is just an example: ...
1 vote
1 answer
91 views

Plotting Polar Solution of NDSolve

I want to plot a solution to the Geodesic equations for the Poincare disk in polar coordinates (though these may be wrong. I want to plot these as a way to check my answer): $$\ddot{r}+\frac{2r}{1-r^2}...
1 vote
1 answer
48 views

ContourPlot has weird wavy line

I have been using ContourPlot for a complicated but analytic function, which does not need numerical calculations. I am confused to see the result looks like the following picture, where the lines ...
0 votes
1 answer
69 views

Non-minimal coupling ξ , Minkowski false vacuum decay case (shooting method) (An update to the previous question)

I asked a few days ago this question: Non-minimal coupling ξ - numerical bounce solutions (shooting method, false vacuum decay) Alex Trounev helped me improve my code building based on this paper (...
2 votes
1 answer
122 views

How to parameterize a pyramid with a square base?

I wanted to parameterize and draw a pyramid with a square base. The base was parameterized as a function of t , getting: ...
1 vote
1 answer
48 views

Axes labels as multiples of $\tau=2\pi$ [closed]

When using Plot[], is it possible to have axes labeled with multiples of $\tau=2\pi$, not $\pi$? This question is not a duplicate of (Axes labels as multiples of $\pi$). Replacing [Pi] with [Tau] ...
0 votes
1 answer
41 views

define x and y separately in listplot [duplicate]

I want to express y(x) with ListPlot so that x is expressed as I wish instead of just integers. The only way I know is ListPlot[Table[{10i,20i},{i,1,5}]]. But sometimes one wants to define x and y ...
3 votes
1 answer
107 views

0-1 test or Lyapunov exponent, to prove my below system is chaotic?

The following question is a part of my research here,I want to calulate the Lyaponov exponents of the following dynamics to show whether i have a chaotic dynamics or not. $$ \ddot{x}-ax+bx^{3}+cx^{5}...
3 votes
1 answer
59 views

Plot a Time Series with a count of the number of times a particular date appears

I'm working with some data which includes an extensive list of dates. Some dates will appear multiple times, with each individual entry representing the date on which an event occurred. I would like ...
1 vote
1 answer
46 views

Why does the image of this parameterization appear disconnected?

Why the image of this parameterization appears disconnected. Thanks. ...
4 votes
0 answers
45 views

Difference between direct plotting and using function to plot

Edit: Syed's and Lukas's suggestions both solve this problem, thank you very much. I'm having some issues with a set of plots I'm making (it's to do with Penrose diagrams, but that's probably not of ...
2 votes
1 answer
105 views

Confusion about the code

1.First, I defined the spherical harmonic function and converted it to Cartesian coordinates. ...
0 votes
1 answer
55 views

Overlay adding space at top and bottom

I want to use Overlay to combine two plots. I noticed, that Overlay adds space at top and bottom, which I do not want to have. Example: ...
1 vote
3 answers
130 views

Drawing circles on top of a vector field drawn using VectorPlot

I am using the command VectorPlot[{{y, -x}}, {x, -4, 4}, {y, -4, 4}] to plot the vector field $\vec{V}=y\hat{i}-x\hat{j}$. On top of this, I need to draw circles ...
0 votes
2 answers
80 views

Plotting natural log equation in 3D plane

I have a natural log equation from excel and I need to plot it on 3D plane at a particular z(for example, z=1) I would expect a vertical plane, but what I am getting is a horizontal plane. This is ...
2 votes
0 answers
38 views

How to remove the background color for the regionfunction option in contourplot3D? [closed]

Suppose that I want to plot only a part of a given surface using ContourPlot3D, such as the upper hemisphere of a sphere. I could do this using the RegionFunction option as follows: ...
8 votes
1 answer
129 views

How to remove double ticks in bar charts and remove/ extend space between bars?

This is the bar chart. I need to remove the overextensions of the bar lines, reduce the space between consecutive A,B,C,D. However, I also want to retain/ add space between the three groups of ...
0 votes
0 answers
50 views

Why the axes scaling is not 1:1 in this plot?

Consider the figure fig=Parallelepiped[{0.5, -1.25, 10}, {{3.5, 0, 0}, {0, 2.5, 0}, {0, 0, 20}}]; I would like to show this figure, ...
1 vote
1 answer
64 views

How to unite the region of ParametricPlot and set up the mesh for FEM?

I have used the ParametricPlot to plot the sector of the disk and use Show to combine them in one picture, however it cannot be ...
3 votes
4 answers
161 views

Cannot Draw a Composite Piecewise Function

I have defined two functions: g, which is a piecewise function, and h, which is the composition of g. ...
0 votes
1 answer
52 views

How to create a second y-axis in plot in mathematica? [duplicate]

There are two plots with same x-axis. The y-axis value for one plot is much smaller than the other. So plot#1 appears squashed compared to the other. I do not want to use a log scaling or any other ...
0 votes
1 answer
53 views

How to display two plots together? [closed]

I have two plots Edit: I am making this more tractable after reading the guide Plot1 = Plot[{Sin[t]}, {t, -10, 10}] Plot2 = Plot[{Cos[t]}, {t, -10, 10}] How can I ...
0 votes
0 answers
69 views

Why my bifurcation diagram can't be created?

I just tried to creat Bifurcation diagram for the following Duffing equation: $$ \ddot{x}-ax+bx^{3}+cx^{5}+A \,\cos \left(( \omega t)\right)+\gamma\, \dot{x}=g,\dot x(0) =0,x(0)=0 $$ with $$g: n \...
0 votes
1 answer
1k views

How to plot a vertical line with fixed range in grid? [duplicate]

I want to plot a vertical line on a graph. The plot range on the graph ranges from 0 - 12. I want the vertical line at x-axis = 0.8, but the vertical height going from 0 to 7 only. I am not sure how ...
3 votes
2 answers
69 views

Issue using RegionFunction with ListContourPlot

I've hit a problem using RegionFunction with ListContourPlot and am hoping someone can help. I'm trying to use RegionFunction with ListContourPlot to suppress the rendering of contours outside a ...

1
4 5
6
7 8
304