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

learn more… | top users | synonyms (4)

8
votes
2answers
2k views

Legends in combined Plot and ListPlot

I have a set of data ...
8
votes
1answer
399 views

How to align two overlayed plots, one being rotated?

I have two plots which I want to present on a single figure. The bottom left corner is a point of origin of the first plot. The top right corner is a point of origin of the second plot. Also, the ...
0
votes
2answers
221 views
3
votes
2answers
659 views

Creating a grid of plots [duplicate]

I'm really a noob on Mathematica. I would like to create a layout of multiple plots in Mathematica. I've a function that calculates the solution, over time, of a system of differential equations. ...
14
votes
1answer
763 views

How to draw grid lines on top of a plot?

I want to use ArrayPlot instead of a DensityPlot because it seems to be faster (more here) I still want axes ticks to have real ...
0
votes
1answer
527 views

representing triplet data set with color on 2d plot [duplicate]

I have a huge list of data in the form of triplets numbers (e.g. {x,y,z}) and I want 2d plot. In which I want to plot y vs x on which values of z should be shown with color depending on the value of z ...
3
votes
1answer
510 views

How to increase Maximum number of steps in any other functions except NDSolve?

I want to plot an output response from a state space model. I use StateResponse[] to calculate it and then plot it. When I run my code, I face this message: ...
0
votes
2answers
142 views

How to put a list of values on a single axis and add custom labels

I have a table in the following format: Apple 2 Pear 3 Banana 5 Orange 6.5 .... I would like to put the values on a single horizontal axis and add corresponding descriptive labels (apple, pear, ...
0
votes
1answer
339 views

Problem with ListVectorPlot3D

I am trying to make a vector plot (3D or 2D) of the following list of 3 vectors. I simply failed to comprehend why I keep getting an error. Neither ListVectorPlot3D ...
3
votes
1answer
236 views

Using MatrixPlot, how can I dynamically zoom in and out with my mouse? [duplicate]

I have a MatrixPlot output which I would like to zoom around in, drawing boxes that define a zoom region with my mouse. These things are all fairly standard in Labview... surely Mathematica must have ...
1
vote
0answers
100 views

Speeding up 2D histogram plotting (perhaps via ListDensityPlot)?

What would be the fastest way to take an array containing about $n=10^6$ to $10^7$ elements and plot a two-dimensional histogram with A x B bins? ListDensityPlot is taking upwards of half-an-hour. ...
1
vote
1answer
165 views

CMYK colours in a graph template

Hi I'm trying to put together a graphing template. Unfortunately, my arrowheads are a different colour than my functions when the graph is exported to something like a PDF. Is there a way I can ...
0
votes
1answer
151 views

Plotting data with ListPlot where the coloration of the data depends on its position in an array?

Imagine I have some data in a list I'd like to plot using ListPlot in Mathematica 9, for example: ...
-2
votes
1answer
439 views

Problem with plotting a function with NIntegrate

Why does the following Plot3D command never terminate? ...
4
votes
1answer
335 views

ListPlot coloring by density of points

I have a set of points on a circumference: points = Map[Normalize, RandomReal[{-1, 1}, {3000, 2}]] And I want to plot them and color the plot according to the ...
13
votes
1answer
1k views

Is it possible to style multiple Plot or ListPlot curves using a color gradient?

I am using Mathematica 8. In Mathematica, there is a default PlotStyle coloring in Plot and ...
1
vote
1answer
130 views

Plotting three-dimensional plot with Interpolating functions

I want to plot my functions, but I can't seem to figure out what's going wrong. I want to be able to animate it as well. ...
8
votes
3answers
322 views

Cissoid of Diocles not smooth plotted by ContourPlot

Table[ContourPlot[y^2 (10-x)==x^3,{x,0,.1},{y,-.1,.1},PlotPoints->5],{k,1,150,10}] How to get the smooth graph? When ...
3
votes
1answer
112 views

Why does saved graphic not look the same as graphic in notebook?

g1 = Plot[(x^2 - 4 x + 3)/(x + 1), {x, -5, 5}]; Rotate[g1, -90 Degree] After saving the output of the rotated graph, I still get the graph of ...
4
votes
1answer
781 views

How do you export the result of a RevolutionPlot3D to STL for printing?

How do you export the result of a RevolutionPlot3D to STL (STereoLithography) file format for printing? I am a tyro when it comes to 3D rendering and printing.
3
votes
2answers
794 views

Units, plotting and empty plots

maybe I'm completely newbie but I can't understand the behavior of units and the command plot. I'm doing some easy plotting of the state equation for gasses: ...
0
votes
0answers
36 views

I'm definitely giving an integer, but I get Nest::intnm [duplicate]

I am attempting to make a small interactive plot that displays the plot of Cos iterated its times. Whenever I try to evaluate my ...
0
votes
1answer
76 views

How does PolarPlot render a nested list of functions?

I am getting unexpected plots from PolarPlot when I provide a list of functions that I generate using Table. I suspect the ...
5
votes
1answer
963 views

Calculating volume between two surfaces of revolution

Once again, I'm very new to Mathematica and winging it as I go. I probably don't have the math education at this point to even justify buying it in the first place, but that's off topic. I wanted to ...
4
votes
2answers
545 views

What is the default ColorFunction for 3D plots?

This should be a really simple question, but it isn't in the documentation for some perverse reason. I like the default ColorFunction that Mathematica uses for ...
1
vote
1answer
379 views

ParametricPlot with DSolve does not show anything

I manage to plot strn[t] and sig[t] where sig[t] is the solution from my DSolve. However, when I want to ParametricPlot sig[t] vs strn[t], I failed to do it as the parametric plot does not show ...
1
vote
2answers
131 views

How can I make a plot of data saved in a .txt file? [duplicate]

My file. Txt has only two columns, where the 1st column is the time that the data was generated by the 2nd column has decimal values ​​1-100. Example: ...
1
vote
1answer
184 views

Plot image function together maintaining compatibility between their coordinate systems?

Is it possible to plot an image, i.e., draw it's pixels against usual coordinates? My goal is to plot my image and my function in the same coordinates. Update I drew an image of size ...
0
votes
1answer
86 views

Why does automatic scaling behave as it does in Plot? [duplicate]

The following command Plot[Exp[-(x^2)], {x, -5, 5}] draws while the following command Plot[Exp[-2 (x^2)], {x, -5, 5}] ...
2
votes
1answer
2k views

How can I draw an asymptotic bode plot?

When I use Mathematica to draw a bode plot, it always gives the precise version, like this: BodePlot[(10 (s + 3))/(s (s + 2) (s^2 + s + 2))] How can I draw the ...
3
votes
1answer
653 views

Normal and Tangent of Acceleration in 3D

I need to figure out how to find the Normal and Tangent of acceleration. I know the formula for the tangent of acceleration is $((Acceleration . Velocity)/(Velocity.Velocity))*Velocity$ and the normal ...
3
votes
2answers
473 views

How can I put an image on a surface [duplicate]

I want to paste an image on the surface of a 3D plot. For example consider this image which I want to paste on the surface of this sphere ...
1
vote
1answer
318 views

Measuring the area of non analytical regions in a plot [duplicate]

As the title says, I want to measure the area of different closed regions in a plot. Let me be more specific by giving a characteristic example. In the following figure, we observe that inside the ...
1
vote
1answer
129 views

Appropriate application of plotstyle directives

I am attempting to style a Plot in which all of the lines are Thick and I have selected the colors manually: ...
1
vote
1answer
968 views

Adding tangent (velocity) vectors to a plot of a space curve [duplicate]

I am just getting started with Mathematica and need help plotting tangential vectors to a 3D parametric function. I know how to do this in 2D but am unsure how to do it in 3D. Maybe I am using the ...
10
votes
1answer
197 views

Why is my rasterized graphic blank?

Consider the following code: ...
6
votes
1answer
745 views

How can I get better control over StreamPlot?

I'm having some difficulties with the command StreamPlot in Mathematica 7.0. Here's the basic plots I'm doing : ...
5
votes
1answer
165 views

How can I get vectorized text when exporting to pdf?

Consider this code: ...
6
votes
2answers
292 views

How to display the support supp(f) of a piecewise function z = f(x,y)?

I'm wondering how to display the support $\mathrm{supp}(f)$ of a piecewise surface $z = f(x,y)$. As an example, let's consider the following piecewise function (and plot it): ...
2
votes
1answer
214 views

RegionPlot3D Error

I have the following command: RegionPlot3D[ Log[p1/(1 + p2)] > 0, {p1, 0, 0.5}, {p2, 0.5, 1}, {C, 0, 1}] and my Mathematica 9 gave me the following error ...
1
vote
0answers
144 views

problem with exporting transparent object to pdf in version 9

Here is the code: Export["~/Downloads/1234.pdf", Graphics3D[{Lighter[Black], Opacity[0.5], Polygon@Table[{Cos[x], Sin[x], 0}, {x, 0, 2 \[Pi], 0.01}]}]] in ...
6
votes
6answers
482 views

Sort list by day names (Monday, Tuesday, etc)

I have some dates in a list, and I want to plot how many of those dates are Monday, Tuesday, etc. I'm using this: data = {...} Tally[DayOfWeek /@ data] and I ...
3
votes
2answers
341 views

Transcendental equation inside another equation when 3D plotting

I have been trying to solve this plotting problem myself, and I have received a lot of very useful advice from here on Stack Exchange - but I am now at a complete loss as to how to achieve the plot I ...
1
vote
1answer
503 views

Plotting a network or a graph with given coordinates for vertices

I'm new to Mathematica yet have coded a lot in MATLAB. Currently I'm working on a network simulation. My model is implemented in MATLAB, but I need to port it to Mathematica. Here is my question: ...
4
votes
1answer
270 views

ListDensityPlot performance when scaling axes

I need to visualize 3D data having 200*200 data points. ListDensityPlot is a good candidate, but it seems to have strange performance issues. I created a small ...
6
votes
2answers
484 views

Plot3D constrained to a non-rectangular region

I would like to make a nice 3D graphic of a parabolic bowl, with a cylindrical rim. If I do the following: Plot3D[x^2 + y^2, {x, -3, 3}, {y, -3, 3}] I get a ...
0
votes
1answer
154 views

Module Returns Two Values for Plot; I need to Color them

This is probably a very stupid question, but I've been fighting with it for quite awhile now. So suppose you have a module: ...
1
vote
1answer
774 views

PlotStyle in ListPlot: change color scheme, manually choose color of first plot

Say i have this data: data1 = Map[Cos, Range[0, 20]]; data2 = Map[Sin, Range[0, 20]]; And i want to plot data1 in gray and a ...
1
vote
1answer
151 views

Plotting a pattern made of repeating unit blocks but of changing width

I am plotting a pattern as illustrated in link shown below. I want to create an image of fixed size. The whole image should be filled by repeating unit blocks which consist of black and green ...
4
votes
1answer
577 views

How to draw a Circle in a graph with Log Y Scale

I've programmed drawing tools for graph images and am experiencing a problem with the coordinates of an Ellipse on a graph with a Log Y axis. It's quite easy to work out the Y Axis coordinates for ...