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

learn more… | top users | synonyms (6)

1
vote
1answer
360 views

Multiple plots on same graph for different parameter?

I would like to be able to Plot a function (with an implicit Integrate command) with various values for a certain parameter ...
7
votes
2answers
264 views

Mesh at Ticks positions

In a ListPlot3D[ ] I want to have the Mesh at the same positions as the ticks. For some reason this isn't default if both are ...
2
votes
1answer
180 views

Manipulate for variable number of sliders

I'm trying to use Manipulate for plotting multidimensional data, where higher dimensions are defined as sliders. First, this simple example works: ...
3
votes
3answers
218 views

Center Diverging color map on a matrix plot

I want to use the color function "RedBlueTones" and I want to center the map at a number. Then I want to blend in the red direction of I am greater than that number and blend in the blue direction if ...
0
votes
0answers
71 views

add a legend show the expression for each contour?

I am trying to visualizing the unit circle under different norm functions, here is the code: ...
4
votes
3answers
369 views

How to use the same colors in Epilog and Plot

How can you use the same colour to the data in Epilog as the data in the ListLinePlot? I am plotting 25 lists (4 in this ...
0
votes
2answers
878 views

How to put x-Label below the x-Axis? [duplicate]

How to put label "Iterations" below x-axis? Possibly in an easy way without multiple commands. ...
0
votes
1answer
239 views

How to plot a region bounded by three equations?

I'm very new to this website. I am having trouble plotting a 3 dimensional region bounded by these equations: ...
3
votes
3answers
200 views

Combining two plots with inverted xy-axes

I need to draw a set of curves on one graph (characteristics equations). As you can see they have exchanged x and y axes. My goal is to plot all those curves on one graph. Are there ways to do that? ...
1
vote
0answers
31 views

How to Plot a function that returns multiple values? [duplicate]

I have a function that returns multiple values, like this: f[x_] := ( (*... something ... *); {y1, y2}); They are computed together, so there's absolutely no ...
0
votes
1answer
86 views

Blank plot that shows up briefly when changing plot options

I wrote some code in Mathematica to calculate and plot, in tw0 different ways, a function depending of two variables. But the plots are empty even if it takes a few minutes to evaluate the plot ...
2
votes
1answer
128 views

Histogram scale error when using DistributionChart

I'm a novice Mathematica user that is having some problems using the HistogramDensity function in a DistributionChart. My observations are heavily skewed to one category and the height of the other ...
0
votes
0answers
65 views

Using NSolve in a function, selecting one indexed result and using it to plot another function containing a function containing the indexed result

I have a problem using the result pcvar[g] g e (0,1) in the plot cvar1. In the plot cvar I can use it. It must be somehow connected to clearing p in the definition of pcvar[g]. I am gratefull for any ...
12
votes
1answer
932 views

Creating a Mathieu stability diagram

I am attempting to re-create a Mathieu stability diagram like the one shown here: I expected that I could use MathieuC to generate this graph by assuming that ...
3
votes
0answers
284 views

Function with a sharp resonance which Mathematica fails to integrate. Why?

I'm a new user of Mathematica and I'm trying to use it to calculate the collisional cross-section as a function of energy for a given potential and decay rate. I know that the resulting function ...
-3
votes
1answer
130 views

How to show a general graphic (not a Plot) inside a Manipulate

I'm building a little interface, which consists only of a button, as you can see here: ...
5
votes
1answer
489 views

Apply color function to matrix plot

I want to apply the following color rules to a large table of numbers. I have extracted a part of the table to use as an example. I would like to assign 5 different colors to 5 different ranges of ...
1
vote
1answer
175 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 ...
1
vote
1answer
124 views

Scope of variables within a Manipulate expression [duplicate]

I have a problem in defining the local variables. I have this code: ...
0
votes
0answers
105 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]) ...
0
votes
1answer
121 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 ...
1
vote
1answer
171 views

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

I have written the code below: ...
1
vote
0answers
35 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 ...
4
votes
1answer
93 views

Does the VerticalCallout algorithm in PieChart3D work correctly?

In real world usage you often want to use real world labels with long strings (say 15-20 characters) in 3D pie charts. Here is a toy example : ...
2
votes
0answers
82 views

Does the VerticalCallout algorithm in PieChart work correctly?

This manufactured example is typical of many real world cases where we have thin slices of the pie: ...
1
vote
2answers
91 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, ...
0
votes
2answers
255 views

How can I get a PieChart to be colored as I wish?

How to use the value of a funtion[label] to assign color to a piece of the pie? (edited after answer of kguler ) My dude is how to control the colors in ranges of a function of [labels] In this way ...
1
vote
1answer
126 views

Revert y-axis in RegionPlot

I have the following code: ...
3
votes
2answers
197 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
159 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
212 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
88 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: ...
7
votes
2answers
465 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
76 views

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

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

Different colors for nodes in tree plot

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

Export Messing Up Alignment of Bar Chart

Here is my code: ...
5
votes
4answers
198 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
1k 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 ...
2
votes
2answers
331 views

region plot in a 2-simplex

I want to plot a 2-dimensional region with constraint $x+y\le N$, i.e., I want to plot a sub-region inside a 2-simplex. As an example: ...
3
votes
1answer
502 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
306 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
124 views

A problem with set values

The following code is just an example to clearly explain my problem. Assume that : ...
2
votes
1answer
277 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: ...
4
votes
1answer
179 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
243 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
247 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 ...
5
votes
1answer
148 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. ...
1
vote
1answer
220 views

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

I'm plotting an hemisphere with ...
1
vote
1answer
135 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 ...
2
votes
2answers
163 views

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

Note: The bug described in this post is found in Mathematica version 9 and seems to have been fixed in version 10. Ok I don't know if it's a bug or what, but here's what I found: If I use this ...