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

learn more… | top users | synonyms (11)

7
votes
2answers
6k 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
893 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
458 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
1answer
812 views

Positioning ChartLabels in a horizontal stacked BarChart

I can create a BarChart with horizontal bars (using BarOrigin -> Left) and Mathematica will automatically position the ...
4
votes
3answers
386 views

Usage of plot results

Please consider the following examples for a ListLinePlot and ListPlot ...
2
votes
3answers
179 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
503 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
1k 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 ...
1
vote
2answers
666 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 ...
10
votes
4answers
2k 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: ...
5
votes
1answer
195 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
564 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
304 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
604 views

Specifying parts from lists for plotting using Show

I have the following data: ...
8
votes
1answer
148 views

Exporting Graphics3D is not complete

Bug fixed in 9.0.1 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
978 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 ...
51
votes
4answers
7k views

Placing a ContourPlot under a 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
67 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
208 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
567 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
567 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
477 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
781 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 ...
0
votes
1answer
958 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
358 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
3answers
1k 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 ColorBrewer. Is it possible to create a interpolated function from those sample ...
4
votes
2answers
461 views

BarChart with BarOrigin->Left: axis on top

This question is somewhat related to this one. Let's say this is the BarChart i want to make: ...
5
votes
3answers
833 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
795 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
449 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 ...
8
votes
6answers
2k 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
1k 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
115 views

How do I stack a RectangleChart?

What I would like to do is represent the state of a machine over a period of time using a RectangleChart (or anything else that can do it) . The chart will need to be made up of equally sized blocks ...
2
votes
1answer
1k 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. ...
12
votes
6answers
583 views

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

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
800 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 ...
15
votes
4answers
4k 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
693 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
169 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?
2
votes
2answers
533 views

Plotting several numerical solutions plus the analytic solution of ODE in one plot

I want to be able to plot several numerical solutions of an ODE, plus its analytical solution in one plot, in order to see how the numerical solutions converge towards the analytical one with respect ...
1
vote
1answer
1k views

How to scale vectors in VectorPlot?

I generated some pics from 2 datum,one in $x$ direction and the other in $y$,so I used the commands: ...
3
votes
2answers
3k views

How to change the base of logarithmic-scale plots?

Mathematica provides a score of convenient functions to make plots with various logarithmic scale axes, for instance I am using ListLogLinearPlot to have a discrete ...
2
votes
2answers
1k views

Manipulating PlotRange

Currently, I am working with some dynamic simulations of mechanical/electrical systems (in this case a kitchen scale). The main simulation is running smoothly but while building a nice GUI around the ...
1
vote
2answers
125 views

How can I define an option “packet” for plots so I can only alter the definition and all plots with that “packet” will change appearance? [duplicate]

Possible Duplicate: Consistent Plot Styles across multiple MMA files and data sets So, here's my problem; I have a lot of data that is shown in different plots. I want all the plots to have ...
42
votes
1answer
2k views

Constructing election cartograms?

I found this pretty neat page showing cartograms for the US elections and I don't really know how to get started doing these graphics in Mathematica. For those who don't know, a cartogram is a map in ...
1
vote
1answer
320 views

Table not working with Plot

Because NIntegrate[] does not support parallel computation out of the box, I'm doing a simplified version by breaking the integration limit into pieces and using ...
9
votes
1answer
300 views

Overlay of pdf using PairedHistogram in Mathematica

With a standard 1D histogram, I can generate a pdf overlay using Show and Plot. I'd like to do something similar with ...
5
votes
2answers
3k views

How do I switch between dashed and undashed styles in ParametricPlot?

I am trying to generate a parametric plot in Mathematica 8 using the following: ...
0
votes
0answers
88 views

Width of two plots [duplicate]

Possible Duplicate: Vertically aligning two separate plots Trying to illustrate the sums of functions, high school math class... Found a great demonstration on interference patterns, so ...
2
votes
1answer
676 views

White regions in DensityPlot — is this a bug with ColorFunctionScaling?

Is this a bug with ColorFunctionScaling? When I try to supply my own ColorFunction Mathematica seems to partially ignore it, ...