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

learn more… | top users | synonyms (4)

2
votes
2answers
479 views

How to plot function over interval returned by Reduce[]

Let $f(x) = (x^2 + 1) / x$. I need to plot the function for the values of $x$ in which the square of the function is larger than 4, and its cube is smaller than 64. So I used ...
6
votes
1answer
264 views

How to keep PlotLegend expressions on top of each others even when placed at Bottom?

Version 9. When writing Plot[{Sin[x], Cos[x]}, {x, -2 Pi, 2 Pi}, PlotLegends -> Placed[TraditionalForm /@ {Sin[x], Cos[x]}, Right]] The result is Now ...
3
votes
1answer
319 views

Plotting a time delay in mathematica?

I'm having some difficulty plotting a phase space of a function f that exhibits time delay. i.e. ...
2
votes
2answers
130 views
15
votes
3answers
603 views

Plotting the solution of a vector stochastic differential equation

I have a vector stochastic differential equation, $$\mathrm dq = p\,\mathrm dt\qquad q(0)=0$$ $$\mathrm dp = (-q -p)\mathrm dt+\mathrm dW\qquad p(0)=10$$ This can be entered to give me the process ...
8
votes
3answers
648 views

Forest plot with Mathematica 9

Does anyone have experience with or a package for the creation of forest plots in Mathematica 9? For instance for subgroup analyses of cox model or meta-analysis (e.g rmeta package in R)?
17
votes
4answers
2k views

Setting the default font for PlotLegends

I'm pleased that Mathematica 9 appears to have brought us prettier legends. If I always want the legend in ...
6
votes
4answers
3k views

Plotting an Argand Diagram

I have the function: $F(\omega) = \frac{5\; - \;i\;\omega}{5^2\; +\; \omega^2}$ When $\omega$ has the values : $\{ -7, -2,\; 0,\; 2,\; 7\}$ How would I plot the Argand diagram in Mathematica? Or ...
9
votes
1answer
331 views

LogPlot axes labels destroyed when working in high precision

(I'm using Mathematica 8.) I have a Taylor series: poly = Normal[Series[E^x, {x, 0, 10}]] I want to produce a log-linear plot of the error. This is easy enough ...
6
votes
2answers
388 views

Problem achiving effect I want with ColorFunction

I want to create a plot showing historical annual maximum and minimum temperatures. I've figured out how to get 10 years of historical temperature data from Wolfram|Alpha. The plot below shows the ...
0
votes
0answers
90 views

Plotting functions against the same x-axis but different y-axes? [duplicate]

Possible Duplicate: 1 Plot, 2 Scale/Axis The title speaks for itself really. Suppose I have two functions of the same variable that I'd like to visualise on the same plot (with the same ...
2
votes
1answer
155 views

How can I prevent graphics scaling with CDF notebook size?

Recently we saw how to produce xkcd-style graphs. I evaluated the same code and deployed the result to CDF. Everything is working fine except that, in the CDF notebook, the graph is scaled according ...
3
votes
1answer
600 views

Plotting a complicated vector field

If we consider the vector $\left ( A \cdot \nabla \right) \: B$, we have in Cartesian coordinates $$\left ( A \cdot \nabla \right) \: B = \left ( A \cdot \nabla B_x \right ) e_x + \left ( A \cdot ...
2
votes
1answer
298 views

Two questions about drawing tool

In Mathematica, Ctrl+1 inserts a new picture. Using the drawing tool, we can draw many things. It seems to me that there is no way to control the drawing angle. So here are my questions: How to draw ...
4
votes
2answers
2k views

How do I plot the derivative of a set of experimental points?

I have a set of points like this: P = {{$x_1$,$y_1$},{$x_2$,$y_2$},...,{$x_n$,$y_n$}}. I want to plot them and also plot the derivative of that graph. How can I do this with Mathematica? Is there a ...
3
votes
3answers
589 views

Comparing 2 Data Sets in a Single Plot

I have 2 data sets, data1 and data2 with large (in the thousands) amounts of data and I want to compare them in a plane. They ...
2
votes
2answers
246 views

Labeling a Plot with a Slash for Division Sign

I'm trying to label a 2D plot with something like $A/B$ rather than $\frac{A}{B}$. I have tried: Plot[Sin[x], {x, 0, 10}, AxesLabel -> {HoldForm[A/B], y}] ...
4
votes
3answers
353 views

Usage of plot results

Please consider the following examples for a ListLinePlot and ListPlot ...
2
votes
3answers
152 views

Mathematica Basic Plotting Question

Is it possible to plot y = x^2 and x = y^2 on the some graph? For some reason, I can't get it to plot the ...
1
vote
1answer
332 views

How to plot X and Y data to see average data converging?

I initially have ran a large, say 1000 (to be changed later) number of monte carlo simulations (mcRun), and I want to see when the average data result starts to converge to a reasonable value. So I ...
9
votes
2answers
759 views

Dashed line with alternating colored dashes

I am doing a plot where I have multiple shaded regions, and I want the line that separates the two regions to be dashed with dashes being alternating colors (so the demarcation stands out from both ...
0
votes
2answers
461 views

Why Can't Mathematica Integrate this?

I have the following problem from a textbook I am trying to integrate: So, following the directions in text, I am required to integrate each function. However, I cannot get Mathematica to integrate ...
9
votes
4answers
956 views

Filling between two 3D surfaces

I know it is possible to create a filling in between two curves on a 2D plot, but is it possible to do the same in 3D? My attempt like this: ...
4
votes
1answer
150 views

Force size in pixels of plot area excluding axes and labels

I have a matrix where each element represents a pixel. I want to plot the matrix (possibly with ArrayPlot). To suppress aliasing in the final graphic (which I will ...
1
vote
2answers
395 views

Add values to a PlotLabel; use text characters for PlotMarkers in DiscretePlot3D

I have a plot like this: Table[Plot[a*x^2/4, {x, 0, 5}, PlotLabel -> "a=" a], {a, 1, 5, 1}] I want to label the plots as ...
5
votes
1answer
227 views

Exported graphics texture to eps is too dark

Why is the exported graphics eps file so dark? It looks much lighter (and better) as the Mathematica output appearing the notebook. After running ...
1
vote
2answers
384 views

Specifying parts from lists for plotting using Show

I have the following data: ...
7
votes
1answer
107 views

Exporting Graphics3D is not complete

When I export the result defined as the variable pot1 to pdf, the lower contour plot isn't showing. How do I fix this? ...
3
votes
1answer
616 views

How do I cut down on file size of exported eps without losing quality?

I need to import the following to eps so that I can put it into my TeX file. The problem is two-fold: the exported file looks terrible (unlike the Mathematica output), and secondly, the file size is ...
22
votes
2answers
3k views

Placing a contourPlot under and Plot3D

I would like to combine a 3-dimensional graph of a function with its 2-dimensional contour-plot underneath it in a professional way. But I have no idea how to start. I have a three of these I would ...
0
votes
0answers
62 views

How to obtain xyz-axes of same length? [duplicate]

Possible Duplicate: Controlling the 2D $x–y$ aspect ratio of a 3D plot I am plotting 1000 points in a 3-dimensional cartesian coordinate system, the plotting range for the x, y, z axes is ...
1
vote
2answers
153 views

Error changing edge thickness in a GraphPlot

I'm having some problems with the Mathematica graphics inspector. I want to make a graph with the following code: ...
2
votes
2answers
372 views

plotting evolution of points in the same plot

I am trying to plot the points (i,j,k) as they are generated in the loop but in the same plot. The next draws the points in different windows. ...
8
votes
1answer
397 views

Wrapping a rectangle to form a cylinder

I'd like to make an animation showing how we wrap a rectangle to form a cylinder (by joining a pair of parallel sides). Here's my first pass: ...
0
votes
1answer
317 views

How can I make many runs of a simulation and plot all the results with one expression evaluation?

I have many cells, starting with this first cell: ...
2
votes
1answer
316 views

Use output from Plot3D as an object in Graphics3D that I can transform

I'm trying to draw up an optical system where I can show an example of wavefront error on an exit pupil. It would be great if I could take the results of a 3D function from Plot3D and use it as a ...
1
vote
1answer
410 views

Use selfdefined ColorFunction to encode z dimension with predefined limits

In my last question we defined a colorfunction cf. Now I want to use this ColorFunction for a number of different plots (...
6
votes
2answers
281 views

Exporting BarChart3D as PDF produces artefacts

So I think the following image already shows the problem, similar to Avoiding white lines inside filled area in RegionPlot exported as PDF or PS the pdf export of the chart creates thin lines in the ...
4
votes
2answers
641 views

Define a color function based on color samples obtained from ColorBrewer

I am quite new to mathematica and I am searching for a way to create a smooth colormap based on the samples given by http://colorbrewer2.org/ . Is it possible to create a interpolated function from ...
5
votes
3answers
607 views

ColorFunction and/or ColorScaling issue with ParametricPlot3D

My goal is to use ColorFunction to color a cylinder based on the $z$ value of a separate Plot3D. I'm not sure if I am making a ...
9
votes
5answers
558 views

Create filling between two trig functions

Working with trig functions, period, amplitude, etc. I found a worksheet at a calculus website, with some nice questions related to interpreting trig functions, at least, they provide some "fun" ...
3
votes
1answer
279 views

Plot maximum and minimum temperature of a day for range of time interval

How to display (in any graphic representation) the maximum and minimum temperatures for one city in one of these selected time periods over the 5-day period? The time periods are: Morning (06:00 to ...
5
votes
5answers
563 views

Prevent Part[] from trying to extract parts of symbolic expressions

If you have a list, e.g. {1, 2, 3} then you can extract the $k$th part using Part (...
4
votes
1answer
735 views

How to print coordinates above certain points

How do I place the x and y values of the points I have found (maxandmindistance) above the point in a plot? Here is my code so far: ...
2
votes
1answer
631 views

How to find all roots and maxima and minima and graph them

I need to find all the roots of this function. I know it is simple to find by hand, however, I wish to learn how to do it so I can apply it later. The problem is that it only gives me one root. ...
11
votes
5answers
423 views

An elegant way to plot a numeric function that returns a list, and have each element in a different color

I have a function that takes a numeric argument and returns a list of numbers. I want to plot each element of the list in a different color. If I use this command, ...
7
votes
1answer
403 views

Log-scale histogram bug

Not really a question, more a solution to what I call a bug in mathematica v8(.0.0.4). I already sent a bug report to Wolfram. Problem The documentation for the Histogram-function explains the ...
14
votes
4answers
2k views

How to insert a plot into another plot

I would like to know whether there is a way to insert a plot into another plot. I would like to do some plot from a function an then, inside this plot, in the right down corner add a smaller plot of ...
9
votes
4answers
523 views

Dual-Grid Graph Paper With Mathematica?

Is there a slick way to generate the dual-grid graphs such as you can see on pages 7, 9, and 10 of this article, or this one? I've searched, but found nothing. Thanks in advance...
1
vote
2answers
133 views

How to take input from user?

Since I'm new to Mathematica I want to have a Notebook which takes inputs from user and returns average of the inputs entered and plots it on x-y coordinate. How can I do this?