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
0
votes
2answers
40 views

Write the code to display a given plot [closed]

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

Need help in finding intersection point of two function in Block environments

Consider the following model, u[x1_, y1_] :=Block[{x = x1, y = y1}, ODE f = Sin[c x + y]; (c 5 y + 2)/(x + 2);s1 = Solve[{f == g}];{s1}] and then call the ...
0
votes
0answers
19 views

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

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... ...
1
vote
3answers
51 views
1
vote
0answers
39 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
29 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...
0
votes
0answers
29 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 xPositionLab = ...
1
vote
3answers
51 views

2D Plotting from lists

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
31 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
23 views
1
vote
2answers
80 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 $): ...
-1
votes
0answers
41 views

How do you plot an integral on mathematica? [closed]

How do I plot this integral on mathematica? I am trying to do this by hand but want to check on mathematica to see if I am doing it correct.
3
votes
2answers
47 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 ...
0
votes
0answers
34 views

Plot3D is not working. Help [closed]

Plot3D[{x^(2)+4y^(2)+9z^(2)=1},{x,-5,5},{y,-5,5}] When I plot this it comes up as a plane which I know is incorrect, What is wrong?
0
votes
0answers
43 views

How would you plot the integral on [a,b] in terms of one variable x in mathematica? [closed]

How would you plot the definite integral ∫4 dx on interval [a,b] where a=0 and b=4 are the upper and lower bounds on mathemetmatica? The reason why I am asking is because I am practicing graphing ...
5
votes
2answers
159 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
14 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
46 views

plotting using evaluate [closed]

I have some simple equations such as ...
0
votes
0answers
34 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
42 views

Frame ticks in scientific form on double $ y $-axis plot [closed]

I need plots with ticks on the $ y $-axis (both on the right and left) in scientific form as well as equally spaced (unlike in ListLogPlot) to plot data present in ...
0
votes
0answers
36 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
40 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
101 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
100 views

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

The following code is from here: ...
4
votes
2answers
85 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
50 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
47 views

Plot in NDSolveValue

...
0
votes
1answer
43 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?
0
votes
0answers
34 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 ...
0
votes
0answers
28 views

log10 label on ListLogPlot [closed]

I have the following plot: which is created by this data ...
2
votes
1answer
26 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
23 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
54 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
25 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
138 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
259 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
67 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 ...
2
votes
2answers
68 views

Track a moving peak on a periodic ListAnimate plot

I have a ListAnimate plot and I want to track the position of the peak as it moves. Is there any way to do this which takes into account the fact that the peak of the wave moves past the window of ...
0
votes
0answers
47 views

How to plot a series of arrows from a list of vectors?

Suppose I had a list of 3-vectors as a time series like the following: ...
0
votes
0answers
29 views

problem with a CDF

I've just started using mathematica, I should import a .txt file and run an experimental CDF and compare it with Kolmogorov Smirnov tests to see if to analyze the disparity of points with a Gauss ...
1
vote
1answer
30 views

Plotting of multi-lists function versus two variables of one list [closed]

How to plot 3D graph for the function Q Versus x and y given by the following sample code: ...
1
vote
0answers
44 views

$ x $ and $ y $ coordinates in ListLinePlot [closed]

I'm trying to make a ListLinePlot with my randomly generated data, and I want one vector to be the x coordinates of the graph, ...
1
vote
0answers
45 views

Finding total Period length of dataset

I've been tasked with trying to do some analysis on some data. I've been given 50000 points of data, which were claimed to have been collected at a discrete period of $1 m s$ Going under this ...
2
votes
1answer
54 views

ParametricPlot Incomplete

I have a problem to reproduce a graph. Follows the commands used: ...
2
votes
1answer
46 views

How to draw the corresponding part of the projection mesh of this surface

I want to divide a surface f[x_, y_] := (1.4025 - (-0.2 + x)^2 - (-0.2 + y)^2)^0.5 + 0.15 into meshes corresponding to the region x0y ...
1
vote
1answer
51 views

Draw a truncated octahedron packing in 3D

Consider a truncated octahedron composed by 24 vertices (4×6) 14 faces (contain 6 squares and 8 hexagons) 36 edges (4×6+6×82=36). This truncated octahedron can pack and tessellate the 3-dimensional-...
5
votes
2answers
134 views

HIghlight integer coordinates in continuous plot

Suppose I have the plot of some function y = f(x): Plot[f(x),{x, x_min, x_max}] Is there any option to highlight all coordinates (x,y) when both of them are ...
2
votes
1answer
61 views

Make a 3d plot of 2d “slices”

I have two 2D plots which came from taking slices of a 3D data set of the form (x,y,z,intensity). I manually "sliced" the data set to get the slices I wanted from two planes of interest and plotted ...
4
votes
2answers
141 views

How to draw scatter diagram according to {month, day} time format

I want to plot in the {Month,Day} time format, but the DateListPlot function seems to only accept the {Year, Month, Day} format. What can I do to draw the time ...

1 2 3 4 5 219