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

learn more… | top users | synonyms (4)

9
votes
5answers
261 views

How can I highlight one function in the Plot of a list?

I've got a Plot of a list of functions from this previous question of mine. ...
11
votes
3answers
1k views

How do I use Map for a function with two arguments?

I'm a newbie who tries to be a good boy, and use Map instead of writing out a list of functions. I have a table I want to Map ...
5
votes
1answer
433 views

How Can I plot 3D figures using discrete data in one dimension?

I have an approximate solution for the function u[x,t] using the semi-discretization method in time step. For example, I have ...
1
vote
2answers
323 views

Making a plotted curve interactive

Is it possible to make a plotted curve interactive in the sense that when hovering over it a line is drawn from the "hovered" point to one (or both) of the axes. I did do my homework, I just can't ...
3
votes
1answer
109 views

Colors in ExclusionsStyle

I have the following Plot: Apparently MMA uses ColorData[1,1] for the edges in all graphs. I already tried adding ...
7
votes
1answer
293 views

Combining and aligning “chart” type graphics with regular plots

Is there an easy (recommended) way to align regular plots (e.g. ListPlot or Plot) with chart type graphics (...
4
votes
2answers
761 views

Is there a way to output histogram x and y data without using the Histogram chart function?

I have a large list of data (3.2 million real numbers), and I would like to plot a histogram of it. The built-in Histogram function is very nice, but on my ...
9
votes
3answers
676 views

PolarPlot render oddities

I apologize if this is a obvious question and answer, I don't often use Mathematica to display plots or graphics in general to be honest. So, I was tutoring my cousin yesterday in relation to Polar ...
2
votes
2answers
973 views

How to plot an inequality?

I need some help in plotting the following inequality using Mathematica: $$\frac{1+(x/100+0.1)\times y/100}{1.15+1.15\times(x/100)\times(y/100)}\geq 1$$ assuming $x,y\in \mathbb{Q}$, the set of ...
4
votes
5answers
593 views

ImagePadding or other means of getting whitespace when the PlotLabel is a Column or Grid

I have been having problems with exported plots cutting off a pixel or two of the text in the title of my plots. Let's assume we have some data (AR(1) noise with a high autoregressive parameter ...
5
votes
3answers
661 views

Rescale axes (e.g change from Hz to THz)

I have multiple plots of permittivity against frequency, but they're hard to read because the frequency labels go from 4x10^14 to 1x10^15 in Hz. I want to label the frequency with THz instead of Hz, ...
5
votes
1answer
257 views

VectorPlot: How can I evaluate the vector field by clicking on the plot?

This seems like a basic feature that is somehow missing. Ideally we'd get something like a tooltip which shows the x,y position where I click (or of where the mouse is currently hovering) and the ...
13
votes
4answers
1k views

Reflect a Plot Object

I have a relatively simple operation I'd like to perform on a plot: I would like to reflect the plot across the x-axis. I do not have any tick labels, so making sure that the labels are not themselves ...
-2
votes
2answers
879 views

Plotting a parametric plot of two functions

I have two functions f1(x) and f2(x). I want to plot them such that f1 is on the axis of ...
4
votes
1answer
371 views

Tooltip for a ListPlot3D

I am getting stuck with figuring out how to use Tooltip for a ListPlot3D. Basically I have a list of values for the 3D plot (no ...
18
votes
3answers
541 views

Creating DotPlots

I've been struggling to create a DotPlot like the one shown in Cleveland's The Elements of Graphing Data. Using the following dataset ...
4
votes
1answer
388 views
4
votes
4answers
532 views

How to change color dynamically?

I am new to Mathematica and want to change the FillingStyle Dynamically in this Plot. I want ...
5
votes
1answer
2k views

More on combining 2d and 3d plots

This is a spin off/follow up to Can 2D and 3D plots be combined so that the 2D plot is the bottom surface of the 3D plot boundary? ... Following Sjoerd's method, I did this: ...
7
votes
1answer
561 views

RegionPlot (or FillingStyle) using hash lines? [duplicate]

Possible Duplicate: Filling a polygon with a pattern of insets I have a RegionPlot (and sometimes a regular Plot) where I'd like to shade two different parts of it two different ways. Since ...
14
votes
4answers
2k views

Problems specifying number of bins in Histogram

So I wanted to create a Histogram with a custom number of bins. Luckily there is a simple function for this in the form of Histogram[data, n] where n specifies the ...
6
votes
2answers
333 views

ScalingFunctions option works for ListPlot but only if there's no Frame: how to work around this?

Mathematica has quite a nice ScalingFunctions option to BarChart, BubbleChart and the ...
4
votes
2answers
297 views

Dates as FrameTicks on a ListLinePlot

For reasons too lengthy to explain, I would like to display a list of dates or years (as numbers or strings) as FrameTicks on a ...
17
votes
4answers
1k views

Plotting large datasets

I have a lot of data (e.g., 64x8192), to plot and it consumes too much memory (more than 2 GB) causing Mathematica to return "no memory available". For example, ...
4
votes
3answers
3k views

How can I label a ListDensityPlot with a color bar?

Here is an example of what is desired, only the result wouldn't be a contour plot, but a ListDensityPlot. The arguments would be a gradient and a list of numbers.
9
votes
1answer
274 views

How can I get the frame ticks from DateListPlot?

DateListPlot very nicely chooses major and minor frame tick and frame tick label/markers. I am building a custom graphics function where either the ...
8
votes
1answer
270 views

Mathematica: ListDensityPlot behavior different for arrays and points

I am using ListDensityPlot to output the results of a physical simulation. I've passed both an array of values and coordinates coupled with magnitudes to ListDensityPlot. Although I expect identical ...
10
votes
1answer
1k views

Collision of axes labels and ticks

Is there a way to prevent ugly collision of axes labels and axes number like in the following examples, without the need of adding white space: Plot1: ...
3
votes
2answers
440 views

X label in GraphicsColumn is cut off

I'm trying to use GraphicsColumn to plot two curves with very different ranges. for example, ...
6
votes
3answers
438 views

Overlapping ArrayPlot

I have two ArrayPlots, and I want to overlap them as it is done here. For clarity, suppose ...
43
votes
4answers
4k views

How can I generate this “domain coloring” plot?

I found this plot on Wikipedia: Domain coloring of $\sin(z)$ over $(-\pi,\pi)$ on $x$ and $y$ axes. Brightness indicates absolute magnitude, saturation represents imaginary and real magnitude. ...
3
votes
1answer
305 views

DateListPlot with two time list adding 2 labels, and setting the color of the label and lines in plot

This command will produce a chart with two lines on it. DateListPlot[{CapReg, Equity}, Joined -> True ] What I would like to do is add a label above the ...
6
votes
3answers
472 views

Graph adjacency matrix with unconnected nodes

I am trying to display a series of 9x9 adjacency matrices which represent directed graphs on a 3x3 grid. The issue I am running up against is this (compounded by that fact that I don't really know how ...
3
votes
1answer
194 views

Exchange axes in ListLinePlot

I'm sorry to do this right off the bat, but I have the following set of data: ...
8
votes
1answer
142 views
64
votes
2answers
4k views

How to manipulate 2D plots?

When it comes to visual analysis, large datasets or data with intricate internal details often makes plotting in 2D useless, as the outcome is either just a fraction of the full dataset, or no details ...
10
votes
3answers
429 views

Mathematica Plot: Inconsistency when plotting large values

I am working with a function in Mathematica and I am getting some inconsistencies when I plot it. As I really need to understand were this comes from I would appreciate any help. I am working with a ...
7
votes
3answers
497 views

Can I limit PlotRange for 1 function in a Plot?

I have a 2D Plot of 3 functions Plot[ { f1[x], f2[x], f3[x] }, { x, 8, 18 } ] where I want f3[x] only plotted for the range [10, 18] instead of [8, 18]. Is that ...
2
votes
1answer
309 views

Laplacian or Grad of an InterpolatingFunction

For obtaining a Schlieren image from an equation for density, I need to calculate the first derivative of density and make a contour plot. The below code snippet calculates the first derivative w.r.t ...
3
votes
4answers
992 views

how to plot $x=0$ and $y=0$

I tried to plot plane $x = 0$ and $y=0$ with Plot3D[x = 0, {x, -4, 4}, {y, -4, 4}] but it seems that it didn't work out. How can I plot the above planes? Also ...
2
votes
2answers
213 views

Varying plot sizes for identical PlotRanges in ListLinePlot, where one has a legend

I am trying to make some figures using ListLinePlot in Mathematica 8. Although the PlotRanges are the same, the resulting frame sizes are different. The only difference (as I see it) between the two ...
3
votes
2answers
594 views

Use ColorFunction in ListLinePlot with If

The following code ListLinePlot[{2, 4, 6, 8, 10, 12}, ColorFunction -> Function[{x, y}, If[x <= 3, Blue, Red]]] should produce blue lines for $x\le3$ and ...
11
votes
2answers
390 views

What is the precedence of FrameStyle, FrameTicksStyle, and LabelStyle? How to have a LabelStyle different from FrameStyle

From the documentation: Plot[2 Sin[x], {x, 0, 10}, Frame -> True, FrameLabel -> {x, y}, PlotLabel -> 2 Sin[x], LabelStyle -> Orange] But then add ...
12
votes
3answers
951 views

How to set tick label precision

When I make a plot like Plot[Exp[x], {x, 1 - 10^-9, 1}] The resulting plot looks like . Notice all the ticks on the x-axis are all labeled 1. Is there any ...
8
votes
5answers
497 views

can the color in MeshStyle be specified by a ColorFunction, such as “SunsetColors” for example. If so, what is the correct syntax?

This is an example given in Help: Plot3D[Sin[x y], {x, 0, 3}, {y, 0, 3}, MeshStyle -> Gray] Could this be changed to something like ...
8
votes
2answers
263 views

Why do I have to put Evaluate[] here

I wanted to draw some contours. I succeeded with this: ...
22
votes
2answers
883 views

Do I have to code each case of this Grid full of plots separately?

I have written some custom functions to draw multi-panel graphs like this one: It's done by passing a matrix of (custom) plotting functions to a MultiPanelGraph ...
11
votes
2answers
2k views

Plotting complex Sine

I've got another plotting problem. I want to plot Sin[z] where z is complex. So, I've tried the following: ...
6
votes
1answer
1k views

Formatting Ticks and FrameTicks labels with a function

Is there a convenient way to format tick labels? In this example I would like to use the default Mathematica tick intervals, but simply convert the X axis labels to strings with "s" added. As you ...
10
votes
4answers
907 views

How do you plot the same function with different options over different intervals?

Here is the motivation for my question. I want to plot Sin[x] over the interval 0 to 2 π, ...