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
3
votes
1answer
66 views

Tick frequency (monthly to quarterly ) on DateListPlot

Probably a mundane question, but I am stuck. I have a time series of monthly observations, where the dates are specified as follows. ...
8
votes
1answer
189 views

Drawing the basin boundaries

In my case, I need to use the following data file Let's plot the basins ...
1
vote
1answer
57 views

Combining two plots with different x-axes and not labeling the x-axis

Below two figures are just for example. What should I do if I want to plot the two figures below on the same plot with the same y-axis only that the x-axis is also same but not labeled such that. As ...
1
vote
1answer
20 views
1
vote
1answer
34 views

Increasing point size in 3D + color plot

I have a "4D" plot (3D + color) that I want to increase the point size of the points. Seems easy enough right? Just use the following is what I thought: ...
1
vote
0answers
33 views

Plot is passing a bizarrely shifted x_min value to the user-specified Ticks function

The documentation for Mathematica's Ticks option says that you can specify the ticks for an axis by passing a function rather than a plain list description. The ...
2
votes
1answer
72 views

How to make Tube behave like Line when working with non-ideally scaled data?

I have a set of data that Line enjoys quite well, however, Tube seems to throw something of a tantrum when I deliver the same ...
2
votes
1answer
72 views

Atan2 function unwrap [closed]

I use atan2 function in my calculations. The results are as follows: Matlab has the unwrap function, and it copes well with the correction of such plots. How to do it in Mathematica?
1
vote
1answer
44 views

Missing decades in LogLinearplot

I wanted to display all the decades (from 1 to 10^8 like 1 ,10, 10^2, 10^3 etc) in LogLinearPlot and also tried the solution of why-is-listlogplot-skipping-entire-decades. And my code is something ...
1
vote
1answer
46 views

Using AbsArgPlot on parametricNDSolve output [closed]

I have solved following equation using ParametricNDSolve $$ \frac{\mathrm d^2y}{\mathrm dx^2} + \left(a + \frac{2}{\pi} b\ \arctan x\right)y = 0 $$ ...
1
vote
1answer
30 views

Problem with Exclusions when Floor is used

...
4
votes
2answers
112 views

Why this differential equation can only find half of the satellite's trajectory

I calculate the orbit of the satellite according to the gravity, but the following code can only find half of the elliptical orbit and output the warning message: ...
3
votes
1answer
61 views

How to draw the curve of a point on a regular polygon

A point is on one side of a regular polygon, and the regular polygon rotates at a constant speed. How can I draw the change curve of the vertical coordinate of the point with time?
0
votes
0answers
38 views

How to create frame around $ x $-$ y $ plane in a 3D plot?

I have a plot that I just want to "box" or "frame" the $ x $-$ y $ plane, but I cannot seem to find anything that works! Here is the plot that I have, and my code. I haven't included my data because ...
1
vote
0answers
31 views

Trying to Plot a function and not getting an output [closed]

I've been using this to plot the function. Can someone tell me what I am doing wrong? Plot[1/(-1+(e^CubeRoot[x]),{x,0,1}]
3
votes
2answers
61 views

Line plot with 3DListPointPlot

I have been trying make a plot that I have with ListPointPlot3D into a line plot instead of a point plot. I wish there was something called ListLinePlot3D. I've seen examples with, ...
0
votes
0answers
44 views

Use Mathematica to draw a tensor-like network

What are the Mathematica ways to draw this seemly delicate figure? Such that we can output a PDF file in the end.
0
votes
0answers
61 views

How to visualize a vector field on a parametrized surface?

I'm solving a differential equation by NDSolve. After solving the equation, I got the solution for $$. But, now I want to visualise the vector(which makes an angle phi with the normal) on the ...
0
votes
2answers
78 views

Write the code to display a given plot [closed]

Write the code to display the exact image shown above.
1
vote
0answers
37 views

Need help plotting on Mathematica simple piecewise wave function from quantum physics (Quantum Physics, Griffiths, 2.7) [closed]

On Mathematica need to plot an initial wave function defined as... Psi(x,0) = Ax when 0 <= x <= a/2 Psi(x,0) = A(a - x) when a/2 <= x <= a Here is my attempted code... ...
2
votes
3answers
80 views
2
votes
1answer
60 views

Add a button to show properties inside a graph

I would like to draw the graph of $f(x)=x^{3}-x+2$ next to two buttons named: "Property1" and "Property2" in which when I press "Property1" it shows "f'(1) is positive", while for "Property2" it shows ...
0
votes
1answer
33 views

How to make both `x` and `y` axises look in same scale? [duplicate]

Plot the equation y = 2x - 7, where x goes from -10 to 10...
1
vote
1answer
158 views

Move from the rotating frame of reference to the lab frame for a periodic function

I have a plot in the rotating frame of reference which moves with some constant rate, S. I want to convert this back into the lab frame by using some substitution of the form xAxisPositionLab = ...
1
vote
3answers
57 views

2D Plotting from lists [closed]

Is it possible to do a 2D plot taking the point coordinates from separate lists of x and y values? These lists were produced by calculations within the same notebook. For a small number of points it ...
0
votes
0answers
34 views

3D surface plot difficult to put axis ticks and lables

I have a surface plot, I wanted to fix the axis labels and ticks to this plot, but I am unable to fix this. How to do this, Here is the code I tried. the x-axis limits 1e-3 to 1e12, and Y-axis is also ...
1
vote
1answer
45 views

Research Explicit Runge-Kutta method / How to find stability function?

I have this initial conditions ...
1
vote
2answers
91 views

Pick out elements from a list of lists using criteria

Consider a list of lists in this form (with a shape $ m \times n \times 3 $): ...
3
votes
2answers
53 views

How can I make ListDensityPlot show up only in a specified region?

Disclaimer: I am new to Mathematica and this is my first post here! I am trying to plot EEG data of different intensities of brain waves from an FFT to areas of the brain where they were collected. I ...
5
votes
2answers
180 views

3D Vectors wrap on the Sphere

How I can wrap the 3D vectors around the sphere surface like this one. My angles are ...
0
votes
0answers
16 views

Type superscript at frame label

I have a frame to label as such: FrameLabel -> {{Style[Row[{"Ln(R)", " (a. u)"}], 18, "TR"], None}, {Style[Row[{"Inverse of T", " (K^-1)"}], 18, "TR"], None}} ...
0
votes
1answer
49 views

plotting using evaluate [closed]

I have some simple equations such as ...
0
votes
0answers
36 views

How to save plots with opacity[0.5] with transparency?

How to save ParametricPlot with opacity[0.5] with transparency? When I save the image the transparency is completely lot. in both pdf and eps files. I use The following code for saving my parametric ...
0
votes
0answers
38 views

How to show the value of $ x $-axis based on $ y $-axis and saved into table?

I have a code here to calculate the value of y-axis of each partition based on mx. What I would like to do next is: To show the value of each x-axis from the ...
2
votes
1answer
42 views

Generating plot from a list of containing rules

Using Solve, I have produced the following list of solutions to an equation: ...
2
votes
1answer
107 views

How do I plot a definite integral on Mathematica?

I am not sure how to put this in good format, but I want to plot this on Mathematica: $$ u(t) = \frac{1}{4\pi t} \int\mathrm dy\ \mathrm e^{-y^2/(4t)}\ y\ (1 - y^2) $$ on the interval $ [a, b] $ ...
1
vote
4answers
105 views

How to draw $z =\rho^2+θ^2$ surface figure in cylindrical coordinate system

The following code is from here: ...
4
votes
2answers
90 views

How to fill up the interior of the circles with red, blue and green colors?

ContourPlot[{x^2+y^2==1, x^2+y^2==4, x^2+y^2==9},{x,-4,4},{y,-4,4}, ContourStyle->{Red,Blue,Green}]
1
vote
0answers
55 views

Simulating a partial differential equation, uniform vegetation and bare soil system (2 species)

I want to simulate a system of two plants ,woody and herbaceous species; with starting condition that half of the grid (square grid) is filled with woody specie, the herbaceous specie exist on the ...
2
votes
1answer
56 views

Plot in NDSolveValue

...
0
votes
1answer
45 views

Octahedra+tetrahedra filling tessellations in 3D

This is called the quasiregular space-filling tessellations in 3D: formed by Octahedra in RED and tetrahedra in YELLOW Are there any smart ways to do a Mathematica figure drawing this?
1
vote
0answers
38 views

Why can't this density map show completely

The following code comes from this link: ...
1
vote
2answers
42 views

How to customize color corresponding to specific values in ListSliceContourPlot3D

I am trying to make a 3D contour plot I calculated in c++. I read in the results as tables and used the function ListSliceContourPlot3D. This is what I got so far I want to highlight the zero ...
2
votes
1answer
28 views

PlotLabels by numbers when plot a list of function

I have a list of functions, the length of the list is not sure. Maybe be just like: f = {x, x^2, x^3, x^4}; Plot[f, {x, 0, 2}, PlotLabels -> {"1","2","3","4"}] ...
1
vote
1answer
26 views

Arbitrary correspondence between vertical axes

I am doing boxed contour plots of a quantity that depends on two variables. Let's call it f[A,B]. A will go to the lower horizontal axis, and B to the left vertical axis. I would like the two ...
0
votes
1answer
55 views

How to adjust the the plots in a column

I have two plots p1, p2 How to reduce the size of the plot p2 such that it's heigh should be small compared to p1. And also I am interested in putting a common label for both the plots for the x-axis, ...
1
vote
1answer
29 views

ListPlot points labeled in different way

I have plot a list of points by ListPlot, and I want to be able to label these points. Basic codes: ...
3
votes
2answers
146 views

How to speed up this code with Bessel functions

I need to perform a ContourPlot on a function with BesselJ included. But my code is very slow, especially when I set the PlotPoints to be 100. I would like to know how to speed up this code. Any ...
6
votes
2answers
279 views

Drawing Lines on Differential Equation Slope Field [closed]

I am supposed to create a detailed slope-field for x' = x + t/2 I have made a slope field using: ...
1
vote
1answer
72 views

How to plot $ \sin\theta $ in degree? [closed]

Please suggest how to plot $ \sin\theta $ in degree. I am trying using the given below code but it is not working (It works if used Ticks without ...