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

learn more… | top users | synonyms (4)

18
votes
3answers
5k views

Is it possible to change the color of plot in Show?

For example: p = Plot[Sin[x], {x, 0, 1}] Is it possible to write options in Show to change the curve's color for example into ...
0
votes
0answers
21 views

blank part in the contour plot [duplicate]

Why did my listcontourplot have some blank part like the below? I've checked that my data is in the range of [2.5, 4]. Is it because that it changes so fast??
2
votes
0answers
69 views

Setting OperatorSubstitution to false causes Plot's labels of sufficiently small size not to appear in the specified typeface. Is this a bug?

This problem is no longer there after I upgraded to Mathematica 10.0.2. If I set OperatorSubstitution to False, the labels of ...
15
votes
5answers
434 views

Plot a partition of the sphere given vertices of polygons

I saw in this question that Mathematica can draw spherical triangles. I guess something similar can be done to plot a spherical polygon. I am interested in something similar: I have a set of ...
0
votes
0answers
21 views

ContourPlot looking choppy [duplicate]

I want to plot a simple curve, the bifolium (x^2+y^2)^2-yx^2=0. I entered n=1/2; ContourPlot[(x^2 + y^2)^2 - y x^2 == 0, {x, -n, n}, {y, -n, n}] into mathematica and got the plot which looks very ...
3
votes
1answer
42 views

listcontourplot on a sector of a circle [duplicate]

s = Import["Desktop/tension.xlsx"]; ListContourPlot[s, Contours -> 10, PlotLegends -> Automatic] In fact, it is a contour of a circular part from (2,0) ...
1
vote
1answer
75 views

Streamline Plot from velocity discrete values

I solved Navier Stokes equation in C for lid driven cavity flow and extracted converged values of u velocity and v velocities in ...
1
vote
1answer
32 views

Setting Fixed Axis

Is it possible to prevent the values of axis of a 3D plot from moving? If I run this code: ...
1
vote
2answers
51 views

3D box dimensions

How can I set the dimensions of the box of a 3D function, without influencing the function? For example I want to see this function ...
5
votes
0answers
65 views

Strange artifacts on graphics saved as PDF

I have a problem when plotting 3D graphs. Plotting any graph with the default settings using Plot3D, e.g. ...
2
votes
1answer
64 views

Stability Boundaries via Routh-Hurwitz Criterion

I'm attempting to determine the stability boundaries of a 2nd order system via Routh-Hurwitz stability criterion. That is to say, I need to compute when a polynomial, which is in terms of variables ...
1
vote
2answers
161 views

Want to put additional items in my plot legend

I was able to plot most of the parts of the figure. But I have a problem with some legend items. Here is my code: ...
0
votes
0answers
28 views

Draw sample functions from Gaussian Process prior

Previously, I have written implementation codes of Gaussian Process regression in Python and Matlab. However, for better interaction and visualisation, I am currently working on implementation in ...
2
votes
2answers
151 views

graph of the Cantor set in Mathematica

The interval [0,1] of the real line, which we call C0, and divide it into three equal subintervals. In this way we obtain the following intervals [0,1/3],[1/3,2/3], [2/3,1] and we interval rid ...
2
votes
2answers
189 views

How to make a 3D plot of $(x^2+y^2-1)^2+(y^2+z^2-1)^2+(x^2+z^2-1)^2=0$ [closed]

How can I make a 3D plot of $$(x^2+y^2-1)^2+(y^2+z^2-1)^2+(x^2+z^2-1)^2=0$$ Does the above equation describes the same region as $$x^2+y^2\le 1\wedge y^2+z^2\le 1\wedge x^2+z^2\le 1$$
10
votes
0answers
137 views

RegionPlot returning a number

Introduced in 10.0, persists in 10.1. I had updated my mathematica to version 10 few days ago. And I had been shocked by the following fact: ...
10
votes
1answer
128 views

Why does Plot try symbolic values?

I have the following code: Test[a_] := (Print[a]; a*2) Plot[Test[a], {a, 0, 10}, PlotPoints -> 5, MaxRecursion -> 0] This should plot ...
9
votes
2answers
175 views

How to make a ArrayPlot/MatrixPlot in polar coordinates?

in fact, I want to plot a image like: Fig1 the picture above is from a paper Zhou K.-J. et al. 2014 about ion up-flow of ionosphere in MATLAB there is a specialized function pcolor which could ...
3
votes
1answer
216 views

Package for nonlinear plot coordinates

Is there a package for plotting in nonlinear coordinates? I mean that I provide coordinate transformation functions {xi(x,y), eta(x,y)}, for example ...
0
votes
0answers
30 views

Different Order of Magnitude on Distinct Interval Plot Axes

I have a function as bellow y[x_] := 9*10^-9*(Exp[x/(2*23*10^-3)] - 1) I am trying to plot this function for the range ...
0
votes
1answer
77 views

Plotting with arbitrary units

I would like to plot, say, Sin[x/a] with multiples "a" showing on the x axis as units. How can I do that ? I have tried setting the plot limits e.g. {x, -2a, 2a}. I cannot plot said function even ...
2
votes
1answer
192 views

Place legend without border above the plot

I use Mathematica 7.0 and as far as I know, there is not method PlotLegends, only PlotLegend. I want to set my legend - without background, shadow and frame - above my plot, as in the example belowe: ...
2
votes
2answers
156 views

random discrete data 3D plot

I get the random discrete data as follows ...
1
vote
1answer
55 views

Plot roots of polynomial system of equations in 3 variables

I have the two equations $x^2 + 2y^2 + z^2 = 1$ and $xz -y^2 = 0$ I want to plot the roots in 3D. i.e the coordinates $x,y$ znd $z$
0
votes
1answer
36 views

How to change the radius markers and number of concentric circles in a polar plot?

I'm using PolarPlot to plot a function in [0, 1] in a log scale plot, capped at -40 dB, as in the following example: ...
0
votes
1answer
54 views

How do I apply a conditional append rule to plot randomly chosen points?

I'm working on an attempt at forming a sort of "Mandelbrot" set using Newton's method and randomly chosen points. Effectively I need to define a loop for Newton's method to determine whether my points ...
15
votes
4answers
11k views

Plotting Complex Quantity Functions

Trying to plot with complex quantities seems not to work properly in what I want to accomplish. I would like to know if there is a general rule/way of plotting when you have complex counterparts in ...
49
votes
4answers
3k views

Plot draws list of curves in same color when not using Evaluate

This example comes from the Mathematica documentation for Plot under Basic Examples. Can someone please explain why these are each plotted as a different color in ...
0
votes
1answer
41 views

Dashed 3D plot: dashes run together

When I use the Dashed option in my 3D parametric plot, the dashing looks very muddy and the dashes are running together. For example, I plot the below code, right ...
1
vote
1answer
112 views

Exporting to eps loses font/symbol information?

I have already asked this question, which has helped. However, now my parenthesis are coming out as Courier "H" and "L." How do I work around this? Is there an easier way to save a plot as EPS without ...
1
vote
1answer
53 views

Plotting solutions of systems in complex plane

I'm interested in plotting solutions of systems of polynomials in the complex plane, in the following way. Let $f_1,\ldots f_s$ be complex polynomials in variables $x_1,\ldots x_n$. I know how to ...
-1
votes
0answers
41 views

To Polar Plot one and two variables smoothly

Code for two variable case h[a_, b_] = PolarPlot[(1/2 (1 - Cos[2 a] + 2 Sin[a - b]))^2, {a, 0, Pi}, {b, 0, 1}] but possibly better ...
7
votes
4answers
2k views

How can I manipulate the number of decimal places in the frame ticks?

Is there any simple way to increase or decrease the decimal places in the frame ticks. I want to make the y axis ticks of the first two and the second two graphs look similar.
23
votes
3answers
2k views

Is there something like DensityPlot3D to visualize atomic orbitals?

I'm visualizing some hydrogen like atomic orbitals. For looking at plane slices of the probability density, the DensityPlot function works well, and with something ...
1
vote
2answers
910 views

How to plot vector function r(t) = i + j + t*k

How can I plot the vector function $r(t) = i + j + t\;k$, where i, j, k are unit vectors, and t is the parameter of the function r.
2
votes
3answers
164 views

Tooltip pointer in ParametricPlots

ParametricPlot[{ Cos[u]^v , u}, {v, 0, 1}, {u, 0, Pi/2 }, Mesh -> {5, 5}] ParametricPlot[Tootip[{ Cos[u]^v , u}, {v, 0, 1}], {u, 0, Pi/2 }] How to introduce ...
0
votes
0answers
53 views

Plotting a 4dimensional spherical function In mathematica [duplicate]

Im trying to plot the results of the schroedinger equation for hydrogen in mathematica this is the function I defined: ...
-1
votes
1answer
33 views

Plot a function of multiple variables, with all but one are fixed

I have a function of multiple variables that I want to plot. The function is a bit complicated as this ...
1
vote
2answers
151 views

How can I project a Torus along the x-axis?

Making a Torus seems simple enough, but how do I project it along the x-axis? For example, I want to rotate this: And make it look like this: Thanks for who can help!
0
votes
0answers
52 views

Plotting multiple lines with different filling styles and gridlines?

Here's a plot of some lines with different styles of filling and one gridline displayed: ...
0
votes
1answer
121 views

How can I create a phase plane? [duplicate]

I want to make a phase plane for an equation system. I want it to look something like a Mu-Space in Stat-Mech. Basically I want it to show the same system with various different initial condition ...
3
votes
1answer
65 views

ContourLabels issues

The ContourPlot generated by ...
3
votes
0answers
73 views
0
votes
0answers
61 views

Plotting FindRoot solutions against one parameter, varying another

I'm writing my question wholly anew as it has changed its form a bit and I've got some actual code attached as well. I've got a system of equations for which I find numerical solutions with FindRoot. ...
0
votes
0answers
44 views

How to plot three related differential equations in Mathematica?

Eq1: $ \frac{1}{3\phi}=\left[\frac{x}{x+1}\frac{d^{2}}{dx^{2}}+\frac{2x+1}{(x+1)^{2}}\frac{d}{dx}\right]{\phi^{2}} $ Eq2: $ ...
1
vote
3answers
111 views

Plotting Intersecting Circles On A 2-D Plane

I am new to Mathematica and I would like to plot a number of circles all onto the same graph. I would like to visually observe which circles intersect each other. One constraint on all the circles is ...