Questions tagged [plotting]

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

1
vote
1answer
23 views

Infinite expression, indeterminate expression when plotting polar conics

I am trying to plot polar conics using the PolarPlot function in Mathematica. When I plot a parabola or hyperbola, I get the following errors: ...
10
votes
2answers
1k views

Geodesics on a torus

Is it possible to draw geodesics between the points in a path on a torus - toroidal surface? geodesics: generalization of the notion of a "straight line" to "curved spaces" ...
4
votes
1answer
42 views

Plotting evolution of probability with time

I have compiled data about the evolution of a function with time and the data looks something like this. I wanted to plot this data in the form of a density histogram such that every row represents ...
1
vote
1answer
31 views

Percentile BarChart with different EdgeForms

Is it possible to define different Edgeform's in a in a BarChart with ...
4
votes
1answer
59 views

How to switch off the Mesh on an ellipsoidal RegionPlot3D?

I want to draw 3D ellipsoids, the simplest of which is RegionPlot3D[Ellipsoid[{0, 0, 0}, IdentityMatrix[3]], Mesh -> None] How can I switch off the black mesh?...
2
votes
2answers
51 views

Problem with step response of state space model

I have a continuous state space model for dc motor. I get a wrong step response when I use continuous model and I get the right response when I discretize the model using a different method. Can ...
3
votes
1answer
67 views

Combining two plots at a common x-axis

I want to combine a Plot and a ListPlot at their common x-axis. Here's an example of what I've got so far: ...
142
votes
9answers
40k views

1 Plot, 2 Scale/Axis

I would like to plot those two datasets on top of each other. But they have very different range on the $y$ axis. How can I have two different axis? I found the following on the help menu but quite ...
1
vote
1answer
36 views

How can I set the coordinate interval in DensityPlot?

I want to plot 100 points in a density plot, but don't know how to set the interval of the x and y range. My code is: ...
0
votes
1answer
49 views

How to plot this system of equations? [closed]

How to plot this system of equations? This do not work:
0
votes
1answer
67 views

How to make axes appear when using Show to combine plots?

The following code results in coordinate axes not showing up. I'd like to understand why that happens and how to fix it. Ideally, there's a way to do it so that I can set the image size and axis ...
0
votes
1answer
62 views

How to plot two or more equations simultaneously? [closed]

I have this two equations, and I want to solve them in a graphical way. So, -I'm thinking- how can I plot them at the same time?
0
votes
2answers
57 views

How can I get the color 'black,grey and white' in Mathematica? [closed]

I'm drawing a density plot,and I used the command of 'ColorFunction',but failed to get the color 'black,grey and white' as the paper.The pictures are as follows:
2
votes
1answer
36 views

ListLinePlot/ListPlot: How to center the ticks on the steps in the plot?

I am plotting xy-data using ListLinePlot with option InterpolationOrder->0 to get a step-like output. Now, the ticks are aligned to the rising part of the step (...
9
votes
2answers
387 views

Styling polar axes in PolarPlot

You can style the axes in Plot with AxesStyle. For example, the following code makes the axes red. ...
2
votes
2answers
445 views

Two discrete colors for surface with ParametricPlot3D

I am trying to create a plot of a surface that is yellow above the xy-plane (z>0), but blue below (z<0). My first attempt was to use ...
4
votes
4answers
282 views

Piecewise ColorFunction fails

I have Mathematica 10.3, and when I run ...
0
votes
1answer
49 views
8
votes
2answers
424 views

How to plot a surface from a system of equations? [duplicate]

It seems like a natural thing to do, however I can't seem to find anything on the docs nor here on SE. What I'd like to plot is the locus of solutions to a system of (polynomial) equations, e.g. $$\...
0
votes
0answers
29 views

Combine BarChart and TimeLinePlot

I have a Barchart like this: ...
0
votes
0answers
34 views

How to construct rectangular figures from the Fibonacci numbers and the accompanying golden spiral? [duplicate]

t's quiet different from this link How to construct rectangular figures from the Fibonacci numbers? i already get the rectangular form, but it's quite different from the picture below..it's hard for ...
0
votes
4answers
71 views

How to “cache” function values to pass to ListPlot?

I have a function which is very expensive to run. I would like to Plot the function for a certain range, but it is time prohibitive to let Plot simply compute the function for a lot of values as it ...
0
votes
0answers
31 views

RegionPlot with FindMaximum

I don't understand why each time I'm launching this computation Mathematica buggs and I get a message from Windows that the Kernel stopped working... I'm trying to get a map of where the value of ...
0
votes
1answer
35 views

Can we make a labelled parametric plot in which the parameter is integer? [closed]

Can we make a labelled parametric plot in which the parameters are integers? I'm just using Wolfram Alpha but could equally use Mathematica Online, and want something like here. I want to plot ...
1
vote
1answer
80 views

Replicate Matematica code in JavaScript

I don't know Mathematica at all, but I'm interesting in replicating some code to reproduce this animated gif. Mathematica code is this: ...
2
votes
1answer
42 views

Why is plotGrid acting this way?

A couple of days ago I discovered the plotGrid function from this answer here (written by @Jens). Since it seemed interesting I tried playing around with it a bit ...
0
votes
0answers
15 views

SystemException[“MemoryAllocationFailure”] with long evaluation involving FindRoot

I had earlier posted my code in a previous question, but I am reposting my code here: ...
0
votes
0answers
25 views

DateListPlot show point with a thin bar

I have a list of date points and I want to show each point with a single verticle line that connects the point with the x-axis. I imagine that the solution should be the same as for a ListPlot.
0
votes
1answer
68 views

Mittag-Leffler function [closed]

What is the command to plot the Mittag-Leffler function in 3D by using Mathematica program? I have tried the command Plot3D[mittagLefflerE[v,t],{t,0,5}] , ...
0
votes
0answers
18 views

Revolution Issues

I'm trying to plot a surface of revolution but somehow when I do it the ends get cut off. Is there something wrong with my code? The graph looks fine when i graph it on a 2d plane.
-1
votes
1answer
31 views

Circle Equation isn't plotting — [closed]

I have a circle square root equation but Mathematica is not recognizing it. I need it in a piecewise function and while the other parts graph out correctly, this one does plot at all. Thanks!
0
votes
0answers
27 views

How can I exclude a point from a Region Plot? [duplicate]

I want to exclude the point {0,0} from: RegionPlot[0 < x^2 + (y^2)/4 <= 1 , {x, 2, -2}, {y, 2, -2}]
1
vote
2answers
50 views

Finding positive region of continous function

I want to find (and plot) the positive region (within a certain domain say x<3,y<3) of a function ...
1
vote
1answer
129 views

Create a Venn diagram showing the relations of three sets of quantum states [closed]

I've determined a number of probabilities pertaining to three subsets of the "magic simplex" of quantum states described in https://arxiv.org/abs/1212.5046, and certainly would like to have a ...
1
vote
1answer
99 views

How to integrate this function?

How can I perform the following integral? ...
0
votes
0answers
26 views

Fixing the plot region absolutely

I have seen many posts where people are asking to scale the plot region with another plot, especially for when people are using side-by-side plots. Is it possible to set the plot region absolutely. ...
0
votes
0answers
24 views

RegionPlot fails

Consider a function f[x_,y_]:=NIntegrate[g[x,y,z],{z,1.1*x,3000}] where g[x,y,z] is some function. The function f[x,y] is smooth and works perfectly when Plot it....
2
votes
1answer
36 views

Having trouble plotting a logarithmic equation

I want to plot these two logarithmic equations: $\log_{10}x^2 = 6$ $10^{\log_{10}x^2} = 10^6$ $x^2 = 10^6$ $x=\pm 10^3$ This is my code for trying to plot this: ...
0
votes
1answer
28 views

How to plot for imported data while performing some operations on different columns?

I have imported an Excel file, then I did multiplied different numbers with different columns; ...
0
votes
1answer
49 views

Plotting a transcendental equation [duplicate]

I would like to get this graphic: from this article. Here $\kappa$ and $\varepsilon_{dd}$ are related by: ...
2
votes
2answers
115 views

How to show that $f(z) = z^2 + 1$ intersects the line through the roots of $f(z) = 0$ in ComplexPlot3D?

I have plotted the complex function $f(z) = z^2+1$ by using the following code: ComplexPlot3D[z^2+1, {z, -5 - 5 I, 5 + 5 I}] However, I want to show that $z^2+1$ intersects the line $\Re(z) = 0$. ...
0
votes
1answer
37 views

How do I evaluate “If” statement inside PlotLabel? [closed]

I have an experimental function that is dependent on x and y [f(x,y)=Sin(ax/by)]. I am trying to make a 3D plot of f using the manipulate function so that I can easily input measured values of ...
0
votes
0answers
61 views

find gravity acceleration (g) using FindFit

I need some help again, with this simple exercise: Use the data to determine g, but this time use the functional form T = 2 pi Sqrt[L/g] for the period T of a ...
2
votes
1answer
227 views

Circular table (spreadsheet like) - is it possible?

In the past, I've made a circular spreadsheet in Javascript, which can be seen in here : http://secteur-3.net/ARN-Public/ARN.html (left matrix). Each cell is bound to some data and have minimum ...
14
votes
5answers
866 views

How to plot paired smooth histogram/distribution plots?

I've been trying to get paired distribution (aka "violin") plots like those shown below for a few hours, but all my attempts have failed. The key features here are paired smooth histograms/...
3
votes
2answers
164 views

How to get DistributionChart to show normalised densities?

I am having some issue getting DistributionChart to show bin widths as expected, or perhaps it is in my interpretation of the plots. I have four data sets, all of ...
1
vote
1answer
43 views

Manipulating ParametricPlot

I have to solve the following task: Write a Manipulate command containing the values ​​a, b, c and d of the matrix $\begin{pmatrix} a & b \\ c & d \end{pmatrix}$ each varied in the range [0,...
0
votes
1answer
26 views

ParametricPlot of multiple curves Plot y[z][t] versus x[z][t] with both change with t (continuous variable) and z (represent different groups)

Two functions both change with the same independent variable t, there is another variable represent different groups (z). how to plot y[t] versus x[t] with each group of z represented by one ...