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

learn more… | top users | synonyms (2)

16
votes
6answers
1k views

Using ListPointPlot3D to simulate 2D plots moving in time

I wrote a 1D solver for the heat equation $u_t=u_{xx}$, and I can animate the solution using normal ListPlot command, where the x-axis is the rod length, and the ...
6
votes
4answers
518 views

How do I plot a function over a subset of the displayed interval?

I want to plot f1[x] over 0 < x < L/2 and f2[x] over ...
2
votes
2answers
841 views

How to plot imaginary part of a function

I need to plot the cube root of x in mathematica, but the plot shows me only the real part. I want it to look like wolframalpha plot with both real and imaginary parts of the function. Is it possible ...
15
votes
5answers
2k views

Flipping axis on a plot

I want to make a 2D plot where the x-axis is flipped so the higher numbers are on the right and lower numbers are on the left. I've managed to do it by flipping the data and making new ...
16
votes
4answers
394 views

How can I influence the spaces between labels on a BarChart

I want to chart data using a BarChart, the labels on the x-axis are numbers. Unfortunately they are so close to each other it really looks strange and more like one ...
8
votes
1answer
528 views

Using RegionFunction on multiple plots

I realize that the Plot function can plot multiple functions of x at the same time, using { }. I also know that the ...
11
votes
4answers
1k views

Remove tick labels, but retain tick marks in RegionPlot (and related functions)

I would like to remove the numbering on the axes of the following RegionPlot. I would like to keep the tick marks but drop the numbering, I haven't figured out how ...
2
votes
1answer
295 views

Cropping a plot via a command

I have a plot with some whitespace I'd like to get rid of. Ideally, I'd like to use a command like "ImageCrop", but for non-raster graphics (ImageCrop rasterizes the graphic). The Mathematica ...
4
votes
2answers
92 views

Manipulate and ExclusionsStyle

How can I change ExclusionsStyle for a plot inside Manipulate? Here's a sample that (though it shouldn't) seems to produce ...
2
votes
1answer
190 views

Why does the shape of my function change when plotted alongside another function?

I wanted to investigate the periodicity of functions so I tried to Plot them on Mathematica using the Plot function. The ...
8
votes
2answers
337 views

Creating Marker (Tags) on Top of Plots

I am wondering and tried to plot a graph having labeling specified on top of the graphic. I kind of know a brute force method to accomplish it, but the results will not even look close to clean ...
11
votes
4answers
632 views

Real Size Image Printing

I am generating a complicated graphics with Mathematica, but with objects of given sizes (e.g. a line of length 1 inch, between two points). I want to make sure that when I export the graphics, e.g. ...
0
votes
2answers
335 views

How can I plot Intensity values(Z) based on X and Y position. Data stored as 3 columns in CSV file

I have a CSV data file with X position, Y position and corresponding intensity as Z. I ...
41
votes
4answers
2k views

ListPlot: Plotting large data fast

Mathematica produces fantastic-looking graphics, but it can be slow on large data sets. Here is an example for a (random) time series: ...
7
votes
1answer
262 views

How to export transparent raster plots?

Is there an easy way to get transparent plots that work with Save Graphic As using a compatible file format such as GIF or PNG? I tried ...
19
votes
3answers
1k views

How does one set a logarithmic scale in a ContourPlot?

How does one set a logarithmic scale for both x and y axes in ContourPlot in Mathematica?
17
votes
3answers
683 views

How to change ColorFunction after plotting

Say I have a plot like plot = DensityPlot[Exp[-((x-5)^2+(y-5)^2)/5^2], {x, 0, 10}, {y, 0, 10},PlotRange -> {0,1}] Is there a way to change the ...
11
votes
4answers
207 views

Background Shading in Histogram3D

I am preparing some data for dissemination. I have a series of plots that look like so, using ListLinePlot: The background shading is just being added using ...
11
votes
2answers
339 views

About number truncation of ticks display in ListPlot

In my problem, I need to plot a figure in a relatively small region of the $x$ axis, e.g., ...
3
votes
4answers
1k views

Mapping multiple parameters of a function to specific values

I am a little bit confused by the documentation for Apply (@@). I want to define a list of parameters, for instance: ...
2
votes
1answer
100 views

Change the height of a function being plotted

How do I alter the height of any function plot using the Plot function? Mathematica seems to limit the height of the plot up to the range of a function and distort ...
7
votes
4answers
978 views

Coloring Points in a List Plot [duplicate]

Possible Duplicate: ListPlot with each point a different color and a legend bar I want to color the points in a list plot using a function of the (x,y) values. I tried this (example with ...
6
votes
3answers
928 views

Animate ParametricPlot3D for two different parametric equations

I want to write a computer program to generate 3-D plots (with x-y-t axes) to demonstrate the evolution of the two missiles in the following case: i. $x = 100t$, $y = 80t-16t^2$ for $0\leq t\leq 5$ ...
2
votes
2answers
441 views

Plotting the results of iterating a function

This is what I am stuck on f[a_][x_] := x^2 + a; w[a_] := Take[NestList[f[-1.8], 0, 1000], 100] Now I want to evaluate this for different values of the constant ...
2
votes
1answer
200 views

Show parameters on graph

I am graphing the 4 PDFs for a distribution for 4 different parameters in the same graph. I want the values of the parameters to be shown in corner of the graph. How do I do this?
1
vote
3answers
299 views
14
votes
3answers
577 views

On coloring the faces of a surface differently with parameter-dependent colors

Old versions of Mathematica ($VersionNumber < 6) supported a particular syntax of ParametricPlot3D[] that allowed for ...
2
votes
3answers
591 views

How to plot CDF of a Poisson distribution in Mathematica

How to plot the following in Mathematica: $$P = \sum_{k=C+1}^{\infty}\frac{e^{-C^\gamma} (C^\gamma)^k}{k!}$$ I want to plot $P$ versus $C \log{C}$ for a given $\gamma$ with logarithmic scale on ...
3
votes
1answer
132 views

Creating a stacked RectangleChart

I would like to make a "Stacked" BarChart where the bars have variable widths, like a RectangleChart. However, ...
3
votes
1answer
128 views

Why can't I use Show with BoxWhiskerChart?

As you can see in the example image above, I am frequently (but not always) seeing broken line plots when I try to overlay them on top of another plot using Show. ...
7
votes
2answers
375 views

Custom formatting for DateListPlot

I'd like to control more aspects of a DateListPlot, for example: shading for weekend days, and/or indicators for daytime/nighttime areas. By way of illustration, ...
5
votes
4answers
293 views

Display position information out of ListPlots inside a Manipulate

I often have the situation where I'll use Manipulate[] to compare and examine 2 or more lists. A simplified example follows: ...
1
vote
2answers
195 views

Plotting different PDFs of a distribution in the same graph

How would I plot the PDF (probability density function) of WeibullDistribution[1/5, 50], WeibullDistribution[1/4, 40], ...
10
votes
3answers
276 views

Vertical alignment of FrameTicks Text

The text box of a FrameTick/Tick is, by default, vertically centered on the tick mark. Is there a way to adjust the vertical alignment of FrameTick text? Specifically, along the lines of Baseline, ...
10
votes
2answers
798 views

Plotting vectors originating from the origin in 3D

I have an array of data with 3D elements. Ex: x = {{1,2,3}, {3,4,5}, {5,6,7}}. I want to show this data in 3 dimensions, such that each point in the space is shown ...
6
votes
3answers
434 views

How to properly plot a response of a transfer function in Mathematica?

I'm trying to display the output response of a transfer function in Mathematica with and without a compensator. The problem is very strange: while the transfer function compensate is showing well, the ...
14
votes
1answer
267 views

Why does Plot3D omit parts of the surface at kinks?

When doing Plot3D[Max[p^2-q^2,0],{p,0,1},{q,-1,1},PlotStyle->White] the result looks like this (with Mathematica 8.0.0.0): As you can easily see, at the ...
5
votes
1answer
258 views

Exporting a 3D plot into a 3D viewing format and axis scaling

I've been trying to export a Plot3D into an X3D (JVX, VRML) file using the Mathematica's Export function. The problem is that when the PlotRange is large compared to the other two dimensions the ...
33
votes
4answers
2k views

How to make a 3D globe?

There are many ways to create a 3D Earth that is rotatable (see here, here, related here), but most of them have some drawbacks. These issues mainly stem from either ...
14
votes
1answer
278 views

Labelling ArrayPlot Charts

I have been using ArrayPlot to show off some information. Currently, my datasets are like so: ...
5
votes
3answers
2k views

Is there a simple way to plot complex numbers satisfying a given criteria

I think this should be straightforward, but I cannot seem to find a good source on how to do it after searching around, so I'm trying to sketch sets of complex numbers that meet a given for criteria. ...
1
vote
3answers
972 views

Mathematica slope fields

I would like to make a slope field. Here is the code ...
17
votes
3answers
1k views

Plotting a set of trajectories (not a vector field) in 3D

Consider a set of trajectories in 3D space, that possibly converge. By visualizing trajectories as arrows the result will look crowded as each arrowhead will be placed where the attractor is. In 2D, ...
5
votes
1answer
161 views

Create a CDF file with a plot that cannot be edited by double-clicking

I have created a CDF file that contains a Manipulate object with a plot. I intend to embed the file in a web site, so that users can use interactive sliders to ...
5
votes
2answers
196 views

Create self-contained plots when Ticks or FrameTicks require external functions

Let's say I define tick marks for a plot in a separate function outside of the plot: ...
10
votes
2answers
364 views

How to plot a barycentric line

I want to plot a barycentric function on an equilateral triangle (ternary plot). For example f1 = {Abs[Sin[x]], Mod[x, 2], Abs[Cos[x]]}; At the moment I evaluate ...
5
votes
1answer
131 views

Joining only particular dates with DateListPlot

I have the following datasets: ...
4
votes
1answer
148 views

BoxWhiskerChart too slow on big datasets, how to speed it up?

I have very big dataset, with over 14 000 000 records. And maybe more! Each record consists of Data ( Real ) and Time ( integer ). I group records by time interval, resulting in 300 groups. In each ...
10
votes
2answers
377 views

Why is ListDensityPlot unable to plot datasets with extreme ranges

Consider the following dataset: data = Flatten[ Table[{x 10^-9, y 10^-9, x^2 + y^2},{x, -100, 100, 10}, {y, -100,100, 10}] , 1]; If I try to ...
6
votes
1answer
599 views

Why plot returns empty in this example?

Let me rewrite this question, showing the original problem, as it is more subtle than the simple example I showed before using Sin[t]. Here we go again. When I ...

1 19 20 21 22 23