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

learn more… | top users | synonyms (4)

1
vote
1answer
39 views

Expressing a joint distribution for use in ContourPlot

I have $$X_1=T + W$$ $$X_2=2 T + 3 W$$ where $$W \sim N(3,5) \,\text{;}\,\, T \sim N(1,2)$$ and $$P(X=X_1)=P(X=X_2)=\tfrac{1}{2}$$ which I have awkwardly expressed as ...
2
votes
0answers
23 views

What is “ (Dialog) Input [ ] := ” after evaluating a cell?

I have done a time-consuming run and calculation. After many hours ( about 7 hours!), the black color which shows that the cell is evaluating, turn into gray and a strange text appears like this : ...
1
vote
1answer
49 views

Scope of variables within a Manipulate expression

I have a problem in defining the local variables. I have this code: ...
0
votes
0answers
38 views

Plotting the solutions of a system of differential equations on a simplex

I want to solve and plot the solutions of the following system on the triangle simplex: x'[t] == x[t]*(2*x[t] - 2) y'[t] == y[t]*(2*x[t]) z'[t] == z[t]*(2*x[t]) ...
1
vote
1answer
50 views

alignment of plots [on hold]

I want to align my plots like I did with Gird[]. But you cracks here are using these short forms all the time. So, is there a way to achive this result in a better ...
0
votes
1answer
36 views

ListPlot, PlotMarker -> y value [duplicate]

at first sorry if this question is already answered. I would like to display y value as plot marker in listplot ...
0
votes
0answers
78 views

How can I plot my rather complicated function? [on hold]

I have been trying to plote the complex function $f(x,y)$ below, just $x=h(K)$, $y=h(K)$, where $K$ varies from 0 to 2, but I can't seem to find a way to do. Can someone please help me out with ...
1
vote
1answer
116 views

How to set the color of plot legend independent of the plot itself

I have written the code below: ...
1
vote
0answers
29 views

Is there any simple way to zoom/magnify a selected portion of a plot (like gnuplot or xmgrace)? [duplicate]

Is there any simple way to zoom a particular portion of a plot (similar to what you can do with gnuplot or xmgrace using the magnifier and selecting a region)? Usually I do it by varying the ...
0
votes
0answers
39 views

Numeric function not fully evaluating

I'm running into an issue where it seems Mathematica is not fully evaluating the output of my function h[t_]. I included the definition of phi[t_] just to demonstrate that it is a numerically defined ...
1
vote
2answers
56 views

How to plot the product of the NDSolve result and any known function

How can I plot the product of the NDSolve result, e.g. x[t]/.solution and any known function, for instance, ...
1
vote
0answers
27 views

Plotting a StateResponse inside a loop for some reason gives an error [on hold]

/edit Nevermind i figured it out, i now have: ...
1
vote
1answer
78 views

Revert y-axis in RegionPlot

I have the following code: ...
3
votes
2answers
105 views

Controlling spacing of histograms in Histogram3D

I have five histograms, hist1 = Histogram[data1, 20], to which I append {1, 2, 3, 4, 5} via ...
1
vote
2answers
121 views

X-Y scatterplot

Hi I have a simple question. How do I plot the following with Day 1 as my X axis and Day 2 as my Y axis? I need the 22 variances plotted according to the Day they were taken from (these were ...
3
votes
1answer
73 views

Little triangles appearing in a Mathematica region plot with “opacity” saved in a PDF file [duplicate]

I am trying to produce a region plot of many functions, but Mathematica keeps showing me the little triangles when I save it as pdf. I have seen other solutions which fix the problem with PlotStyle-> ...
1
vote
0answers
74 views

Inhomogeneous phase-portrait with StreamPlot [duplicate]

I have a problem with a must-be simple streamplot. The potential function governing the motion is U, and I have the following code in Mathematica: ...
6
votes
2answers
145 views

Nothing appears in simple plot

I'm trying to get the following simple code to work. (The code is just supposed to graph the norm of the second derivative of a vector function). ...
1
vote
0answers
39 views

Why does Network`GraphPlot`wrapper appear in my GraphPlot?

I'm making a GraphPlot of data similar to this: ...
6
votes
3answers
133 views

Different colors for nodes in tree plot

I have some list of numbers which I am plotting using TreePlot. This is the code: ...
5
votes
4answers
128 views

ContourPlot refuses to show in-figure PlotLegends after turn on ContourShading

I would like to do a contour plot with a label inside the figure. For example, the following works well. Note there is a small "example" at the right bottom figure. ...
8
votes
4answers
422 views

Filling a curve between a line and the x-axis

I'm trying to plot the function $f(x)=\dfrac{1}{x^2}$, filling the square area from (0,0) to (1,1) with purple and filling the area under the curve from 1 to 4 with red. However, Mathematica is not ...
3
votes
1answer
466 views

Why the complicated pattern in this 3D plot?

ListPointPlot3D[ Table[{n, s, (Prime[n]^s/(Prime[n]^s - 1))}, {n, 1, 2000}, {s, 2, 80}], PlotRange -> All] Is the pattern the result of the data, the ...
0
votes
0answers
37 views

A problem with functions and Infinite expression 1/0 encountering

Following code (function) makes integrals and then replace f[x] with Cos functions and calculate the definite parametric ...
0
votes
1answer
75 views

A problem with set values

The following code is just an example to clearly explain my problem. Assume that : ...
0
votes
0answers
40 views

draw graphics in cycle [closed]

Good evening. I've made the following plot g1 := Plot[f[x], {x, -3, 5}] gr1[f_, xmin_, xmax_, slices_] := Module[{span = (xmax - xmin)/slices, ext}, ext[op_, r_] := First@Quiet@op[{f[x], r ...
1
vote
1answer
65 views

Another one problem with legends on GraphicsGrid

I have used ListLinePlot to generate this grid of plots: and I want to add a legend in Row Layout below this grid. My code, has as follows: ...
1
vote
1answer
130 views

What are these strange shapes in my Plot3D[]? [closed]

Plotting a function, I noticed some strange spots away from the main feature, the dark purple here: You can see that they don't actually have any curvature themselves: Strangely, you don't see ...
0
votes
1answer
70 views

Solving System of Nonlinear with Three Differential Equations

I've been trying to solve a system of nonlinear differential equation, but the conditions are a bit weird. Two of the differentials equate to the same equation, but have different boundary ...
0
votes
0answers
30 views

Calculate length of rope sound in a tight spiral [closed]

Measuring a tightly wound spiral of rubber water tube, can I correctly calculate the
0
votes
0answers
36 views

Why isn't Mathematica plotting my differential equations? [closed]

So here are my equations eqns = {x'[t] == a*y[t] - b*x[t] + g, y'[t] == c*x[t] - d*y[t] + m, x[0] == 60937, y[0] == 13797}; Then I solved it with ...
0
votes
1answer
75 views

How to work with Interpolating Function?

I'm starting using Mathematica. I have two coupled differential equations and after using NDSolve the output is in the form of a Interpolating Function. I want to Plot the square modulus of one of the ...
2
votes
1answer
131 views

DynamicModule with Plots and EventHandler

I am making a little animation in Mathematica, along the lines of some of the Wolfram demo projects. I'd like to animate a simulated trajectory of a random process (say a Poisson process), and while ...
0
votes
1answer
78 views

combining plots [closed]

I've made the following plot ...
4
votes
1answer
96 views

How can I prevent a Plot expression from evaluating points forbidden by its RegionFunction?

I just ran into this and it had me scratching my head for a good while. Say I have a function which may produce error messages for certain inputs, like e.g. ...
0
votes
1answer
55 views

How to manually set z-axis values in a 3d plot?

I'm plotting an hemisphere with ...
1
vote
1answer
81 views

Behaviour of OutputResponse in ListLinePlot

Ok, I think this is not the best way to do this, so I'm open minded for every suggestion doing it in a better way. The Question is why does ListLinePlot not plot ...
0
votes
0answers
38 views

How to plot a “pressed” hemisphere [duplicate]

What I'd need is to draw an hemisphere of given radius but then it should have a reduced height. I don't mean a section of an hemisphere, I mean that the hemisphere should be pressed/flattened...so ...
1
vote
2answers
84 views

Getting messages Rest::norest and Divide::indet from ContourPlot3D

Ok I don't know if it's a bug or what, but here's what I found: If I use this function: ...
2
votes
1answer
80 views

Plotting Network with LayeredGraphPlot with specific order

I have a network and want to plot it. I use LayeredGraphPlot, and the network is described as: ...
3
votes
0answers
52 views

Export to PDF on OS X, font missing on Windows

Here is another problem with Mathematica plots and PDF. I have Mathematica 9.0.1 on Mac OS X. I want to export my plots to PDF to include them in a LaTeX document. If I export the plot with the ...
0
votes
1answer
100 views

predator prey model with prey refuge

I want to plot the phase diagram of prey predator versus prey refuge to see how the prey refuge influences the population of prey and predator.And this is the system $x'=\alpha ...
2
votes
1answer
82 views

Showing ListLogPlot and redrawing FrameTicks

I want to combine two ListLogPlot plots. For example ...
3
votes
2answers
76 views

Interpolation impossible for ListPlot with Missing?

I have a list of data to plot. I would like to plot them with lines but delete some data before plotting and leave the lines disconnected where data is deleted. For example, ...
0
votes
1answer
56 views

marking the points of x-intercept on a plot

OK, I have a nice plot of some oscillating motion. I can read some stuff off the graph, but I thought it would be cool to show a dot where the curve hits the x-axis and a little label showing the ...
0
votes
0answers
40 views

How to plot stacked curves with sharing the horizontal axis [duplicate]

How to plot the curves in the image.
1
vote
2answers
91 views

Parametric 3D plot with parameters satisfying an implicit equation

I am trying to plot a function $ {\bf x}(t) = r(t)\hat{v} + {\bf b}(t) $, with unit vector $ \hat{v} $ and vector $ {\bf b}(t) $ given in spherical coordinates. For simplicity, assume that $ \hat{v} = ...
2
votes
1answer
84 views

Make a “ditch” function for electric field purpose

I'm trying to make a function to simulate a finite bar and get the electric field, i did it by put 22 funnels together but is too slow and is not very accurate; does anyone have any function to ...
5
votes
2answers
225 views

How to export 3D plot, without losing the specified view of rotation?

Sorry I am not sure if I got anything wrong with this version of Mathematica and Mac OS X i am running. But every time I export a 3D graph, to png or tiff, I lost the view angle, view vector viewpoint ...
2
votes
1answer
113 views

Plot 3D boolean Array or matrix in Mathematica

I have been attempting several methods to plot a 3D diagram of a n by n boolean array in Mathematica but none of them produced satisfactory result. I want the $3D$ plot to have a cube when ...