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
3answers
222 views

PlotMarkers don't change colour for different lines

I have a set of data and several function operating on the same data, that I wish to plot together in a ListPlot. I need different ...
1
vote
2answers
196 views

Clear labelling gray-scale plots

I am plotting a number of functions (at least 4 in one plot) with a legend. Needless to say, it is important that it is clear from the legend which line belongs to which function. I tried to play ...
1
vote
1answer
125 views

FindMinimum gives wrong solutions inside a loop

I have a density function $\rho(r,z)$ and I want to calculate the minimum distance $d_{min} = \sqrt{r^2 + z^2}$ from the center (0,0) in which $\rho$ becomes negative. The easiest way is to find where ...
5
votes
4answers
274 views

Drawing normals to a curve

I want to draw a series of normals to a curve, where the curve has been parametrized by a single angle, i.e., the polar angle. The curve is actually sinusoidal perturbation of a circle of radius ...
39
votes
5answers
1k views

Vary the thickness of a plotted function

I know, that I can change the color of a function with the help of PlotStyle: Plot[Sin[x], {x, 0, 3 Pi}, PlotStyle -> {Green, Thickness[0.01]}] I also know, ...
0
votes
1answer
97 views

How to transform a DynamicModule into a Graphic

I am generating a graph through a custom function using DynamicModule: graph1 = customFunction[a] If I try to do: ...
30
votes
3answers
951 views

Implementing hexagon binning in mathematica

Hexagon bin plots are a useful way of visualising large datasets of bivariate data. Here are a few examples: With bin frequency indicated by grey level... ..and by glyph size There are packages ...
2
votes
1answer
159 views

Jumps on a Plot animation

The following code: ...
8
votes
2answers
1k views

Legends in combined Plot and ListPlot

I have a set of data ...
8
votes
1answer
370 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
215 views
3
votes
2answers
465 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. ...
11
votes
1answer
488 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
415 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
360 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
135 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
262 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
213 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
92 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
154 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
137 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
303 views

Problem with plotting a function with NIntegrate

Why does the following Plot3D command never terminate? ...
4
votes
1answer
275 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 ...
12
votes
1answer
967 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
117 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. ...
7
votes
2answers
259 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
111 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
594 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 for printing? I am a tyro when it comes to 3D rendering and printing. Thanks for any help. Jeff Thomson
3
votes
2answers
498 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
74 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
743 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 ...
3
votes
2answers
355 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
273 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
125 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
172 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
79 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
1k 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
512 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 ...
2
votes
2answers
361 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
279 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
110 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
576 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
189 views

Why is my rasterized graphic blank?

Consider the following code: ...
6
votes
1answer
597 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
158 views

How can I get vectorized text when exporting to pdf?

Consider this code: ...
6
votes
2answers
279 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
182 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
122 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
392 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 ...