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
0answers
73 views

Do StreamPlot and VectorPlot work with Piecewise?

Executing StreamPlot[{Piecewise[{{-1, z < -1}, {z, 1 >= z && z >= -1}, {1, z > 1}}] , -x}, {z, -5, 5}, {x, -5, 5}] , I see an error message &...
2
votes
2answers
109 views

ParametricPlot inside of ParametricPlot [closed]

I don't know why the following is not working! The code has a function y[x] then I have g[t] then I want to plot ...
4
votes
1answer
63 views

Remove part of TemperatureMap Color function

I am using here some random contour plot as an example. I have this ContourPlot: ...
2
votes
1answer
123 views

Combining VectorPlot and Graphics3D

I have a simple VectorPlot3D VectorPlot3D[{x, y, z}, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}] Can I substitute the default arrows with Graphics3D object like: ...
0
votes
1answer
58 views
0
votes
1answer
47 views

2 equations 3 unknowns. Implicit 2D Plot?

I have a hopefully simple question which I could not find any solution to yet: With two equations in three unkowns x,y,z I would like to plot their solution in x,y space. I cannot get rid of z ...
2
votes
3answers
366 views

Plot solutions to a trigonometric equation on the unit circle

For example, when solving the equation $$\sin(13x)+\sin(9x)=\cos(2x)$$ (by hand) you get the solutions $$ x= \begin{cases} \pm\tfrac{\pi}{4}+\pi n,\\ \tfrac{\pi}{66}+\tfrac{2}{11}\pi n,\\ \tfrac{5\pi}{...
0
votes
1answer
95 views

How to plot a smooth LogLogPlot of an oscillatory function having damping

I am trying to plot a damping solution with LogLogPlot ...
0
votes
1answer
39 views

Difficult on integration the normalization of a piecewise function

I have a little problem; I have defined the following Piecewise-function in the variables {x,L,w}: f[x_, L_, w_] := Piecewise[{{x w (L - x), 0 <= x <= L}}]; ...
0
votes
1answer
90 views

Mathematica ParametricPlot3D: plotting close surfaces

I am plotting two surfaces in Mathematica: green and yellow using ParametricPlot3D. Their intersection is the red curve. However, in the vicinity of the intersection curve, the colors and meshes mess ...
0
votes
0answers
42 views

Encountered SystemException["MemoryAllocationFailure"] while trying to plot a function

I have an expression that simplifies to the following expression, which I denote as a function X. ...
0
votes
0answers
69 views

How adjust the ratio between the units of axes?

Initially I thought that the function AspectRatio-> calibrated the ratio between the units axes, e.g. putting AspectRatio->1/2 I thought that the ratio x:y between units of the axes would be 1:2,...
1
vote
2answers
61 views

How to display Parametric plots in different regions together?

I cannot find how to plot the branches of a 'ParametricPlot' in different colors ...
0
votes
0answers
46 views

Is possible to put multiple independent legends into Graphics?

In the following Graphics I'd like put on the left and below another legend where I indicated the scale of the plot: I tried to do this putting into Inset the command PlotLegends->{} but ...
5
votes
3answers
189 views

How to manipulate the colours when joining points in ListPlot

Suppose I plot out two sets of data on the same graph as follows: ListPlot[{{{1, 1}, {2, 2}, {4, 4}}, {{3, 3}, {5, 5}, {6, 6}}}] The colours of the points change ...
2
votes
2answers
142 views

There is a way to put a legend into a graphics?

There is a way to put a legend into a graphics? For example, given the Graphics ...
2
votes
1answer
131 views

Orbit integrator / Keplerian orbit

I want to integrate a circular Keplerian orbit with GM = 1, a = 1 over 100 orbital periods. But the thing is that I can only make the Orbit change when I change a. And the Orbit remains the same when ...
1
vote
1answer
51 views

Problems with ParametricPlot3D options

I have the following code: ...
2
votes
1answer
53 views

Densityplot with two argument function

I want to plot the heat map of a two-variable function which has two arguments, but the function is continuous on the transition line. However, the densityplot put no color on the transition line. ...
0
votes
1answer
36 views

ListPlot vs. ListLinePlot How Do You Remove Discontinuous Artefacts from Introduced by Mod?

I have some data that inherently describes a phase and would like to plot it in between [0, 2*pi). When I use ListPlot with the ...
0
votes
0answers
28 views

axis label format [duplicate]

I am plotting the following function ...
1
vote
1answer
56 views

How put a legend in an animation?

I wrote the following code for create an animation with legend: however I was not able to put the LineLegend command into the command Animate and so it seems that this is the reason for which I can't ...
1
vote
3answers
146 views

Plotting the solutions of the equation $e^{-z}=z$ in the complex plane

I would like to plot in the complex plane the solutions of the equation $$e^{-z}=z.$$ I tried this: I took $z=a+ib$ and took the real and imaginary part of the equation: ...
1
vote
0answers
36 views

ListlinePlot 3D How to make color bar match the z value

The code is like this: ...
1
vote
3answers
122 views

Color a 3D line plot of list of lists

Assume a list of lists of length n of the kind: t = {{x1, y1, z1, p1},{x2, y2, z2, p2},...,{xn, yn, zn, pn}}. I'd like to make a ...
0
votes
1answer
59 views

Represent the motion of a particle

I am trying to represent the motion of a particle along a given trajectory. So I defined the following functions ...
2
votes
2answers
124 views

Poincaré section for non-autonomous logistic equation with periodic harvesting

I'd like to plot the Poincaré section based on the problem from here: see exercise 8.1 Given that the standard logistic equation with harvesting function is $$\dfrac{dx}{dt} = ax(1 - x) - h (1 + \sin{...
3
votes
2answers
132 views

Any way to get Mathematica to Solve[Sin[Tan[x]]-Tan[Sin[x]]==0,x]?

Solve[Sin[Tan[x]] - Tan[Sin[x]] == 0, x] It says it runs out of methods. After a very long time. Plotting the expression shows there are periodic solutions and ...
0
votes
0answers
58 views

piecewise vector field and composition of piecewise functions

I have the following vector field ...
0
votes
1answer
41 views

parametricplot issue [closed]

I need to plot x2[x1[t]] using ParametricPlot. However the output is an empty plot. My code: ...
0
votes
1answer
75 views

Graphing random spikes with MapThread

I know that using RandomVariate, I can get this graph ...
0
votes
1answer
44 views

Contour plot with x, y and z values?

I have x , y and z as x = List[1.355, 1.357, 1.359, 1.36, 1.357, 1.355]; and ...
2
votes
0answers
47 views

Can I remove a line in ListPlot and put ticks on the right

Why does my ListPlot have a gray line at $x=0$? I have set Ticks and PlotRange options. <...
0
votes
1answer
61 views

Plot multiple functions in wolfram mathematica [closed]

I would like plot function z=f(x) where z=tanh(y) and y=3*sin(x), and function sin(x). So the result will be two graphs. I tried this: ...
0
votes
0answers
68 views

How to convert a 3d plot to a 2d plot along z axis?

I have some initial functions which are defined as following ...
2
votes
2answers
80 views

How to find the supremum of a brownian motion?

I imagine this is quite simple but unable to find it, if I simulate a standard brownian motion, $(B_t)_{t \geq 0}$, with ...
1
vote
1answer
59 views

How to extract contour values from ContourPlot3D?

From this interesting link How to simultaneously extract contourvalues and contourline? I've learnd how to extract the contourvalues from a ContourPlot-...
5
votes
3answers
253 views

Filling in LogLogPlot

I have a function firsttempinterp[x] that I plot using LogLogPlot. I used Filling to fill a ...
1
vote
0answers
20 views

How can I combine Dynamic plots saved in named variables inside a DynamicModule?

I am creating a few separate plots that I want to be updated dynamically. I want to combine the plots so they are a single plot. Normally, I would use Show for this....
0
votes
1answer
42 views

Problem with a plot in ContourPlot3D using Table

people! I'm trying to create a table with eight different contour plots in 3D using the following code: ...
0
votes
1answer
65 views

How to graph a discontinuous array of data

I have an array of data, I am trying to plot it but I need to draw a line each 10 data and displayed as a discontinuous function. I tried using ListLinePlot but ...
0
votes
0answers
64 views

what's wrong with this code for truncation number m=9?

I have a puzzling problem over the following mathematica code I program to solve some problem. I believe the two plots as defined are identical, but it is only identical when mm<9 and when m is ...
0
votes
0answers
32 views

Strange Error in ParametricPlot3D

...
1
vote
2answers
39 views

Plotting several functions, each one with different properties using Table

I have these four different functions in the same plane: ...
1
vote
0answers
49 views

What parametric equations could be used to replicate these surface plots seen on 3d printed vases?

I came across this interesting link and am curious to know what generic equations were used to create these waves on the vase surface? It was mentioned that special dates could be incorporated into ...
0
votes
0answers
45 views

Unexpected clipping of axes values in Plot

In working through Andreas Lauschke's extremely informative lecture series, in his lecture (#8) on Rarer Probability he provides the following code (not strictly contiguous and modified slightly to ...
0
votes
0answers
56 views

Finding and plotting a line tangent to a function

Find the equation of the tangent line for the following function. Then plot the original equation and the tangent line on the same graph. 𝑥 =cos(𝜋𝑡) 𝑦=𝑡3 +2𝑡 (0,9/8)
0
votes
0answers
34 views

Converting 1D map into first order differential equation for bifurcation diagram code

I have existing code to plot bifurcation diagram for coupled first order differential equations. It seems to work for coupled differential equations. To test the code further, I use the simplest ...
1
vote
1answer
115 views

Mathematica label callout

I wanted to created callout for my plot, the plot is created by: ...
1
vote
1answer
71 views

ColourFunction with fixed colour in range

After quite a lot of searching, I cannot seem to find an answer to my query, so I thought I would ask. I am creating a contour plot of some function of two variables, $f(x,y)$, that is small ($|f(x,y)|...