Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [plotting]

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

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" ...
0
votes
0answers
10 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: ...
2
votes
1answer
26 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 ...
0
votes
0answers
30 views

Problem encoutered when attempting to draw geodesics on a torus

I have a problem with this answer Geodesics on a torus. I mean the first variant of the answer. I'm trying to enter the points u1, u2, v1, v2, but the solution does not output anything, only the ...
2
votes
2answers
84 views

Automatically Trimming Noisy Experimental Data and Extrapolating It

I have experimental data which looks something like this I first want to remove the outlier points which are at quite high value such as around x= -10,000 etc, how to automatically trim these points....
0
votes
0answers
55 views

Please help me find what is wrong with my code [on hold]

I am not getting a plot from the following code. Please tell me how to fix it. ...
1
vote
1answer
25 views

Percentile BarChart with different EdgeForms

Is it possible to define different Edgeform's in a in a BarChart with ...
4
votes
1answer
55 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?...
0
votes
0answers
31 views

Solving and plotting nonlinear system of differential equations [on hold]

I cannot get the graph of the system of differential equations below, can you help please?? ...
2
votes
2answers
44 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
59 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
28 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
48 views

How to plot this system of equations? [on hold]

How to plot this system of equations? This do not work:
0
votes
1answer
62 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
61 views

How to plot two or more equations simultaneously? [on hold]

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
51 views

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

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
33 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
377 views

Styling polar axes in PolarPlot

You can style the axes in Plot with AxesStyle. For example, the following code makes the axes red. ...
1
vote
1answer
20 views

LegendMarkerSize not recognized in ListPlot for Mathematica 10

I'm trying to put a legend on a plot done using ListPlot ...
2
votes
2answers
440 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
280 views

Piecewise ColorFunction fails

I have Mathematica 10.3, and when I run ...
8
votes
2answers
401 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
27 views
0
votes
0answers
33 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
67 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
28 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
0answers
57 views

Trying to plot a magnetic field of a straigth wire [closed]

I want to plot a simple vector field of a simple magnetic field of the current through a straight wire, which is given by $\qquad \overrightarrow{B}(\overrightarrow{r}) = \frac{\mu_{0}}{2\pi}\frac{I}{...
0
votes
1answer
30 views

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

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
76 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: ...
0
votes
0answers
25 views

Saving graphics output in a PDF file for insertion in a LaTeX document [on hold]

I am trying to save the plot shown below from a Mathematica file. However, when I save the selection and put it in a LaTeX file, it appears with a red background. I need the picture to appear in the ...
2
votes
1answer
38 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
39 views

Loglog scale plot [on hold]

I am doing a numerical experiment and I need to have the plot in the Loglog scale. The data is as follows: n HAAR B2-UEP B4-UEP N2-OEP N4-OEP ...
0
votes
0answers
52 views

Plot solutions by Mathematica [closed]

How to plot two solutions x and y with axeslable x and y and with taking the time “ t” into consedration ? The solutions that I need to plot are; $ x=Eα(t^α )+ Eα(3t^α )$ , $y = -Eα(t^α ) +Eα(3t^α ...
0
votes
0answers
13 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
22 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
45 views
0
votes
1answer
59 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
17 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.
0
votes
0answers
20 views

Plotting a circle in a piecewise function for a surface of revolution [closed]

I've been using Mathematica for a calculus project where I need to create a surface of revolution and print it out. Unfortunately, I can't seem to be able to insert a circle (that contains more than ...
-1
votes
1answer
28 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
25 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
44 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
122 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
93 views
0
votes
0answers
25 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
23 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
33 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: ...