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

learn more… | top users | synonyms (4)

13
votes
1answer
934 views

Plot showing discontinuity where it shouldn't

I was trying to integrate a continuous function with a kink and I did it two ways and both ways the plot of the result shows a discontinuity. I also later want to differentiate the Integrated ...
11
votes
1answer
908 views

How can I make hatching filling of plot

How can I make hatching filling of plot Like this: I use another one plot with shifting to make filled area above: ...
25
votes
1answer
466 views

Creating a package of special plots

In my work as a math teacher, I create lots of graphs to illustrate ideas. I have lots of math books and will often try to duplicate a particular style of graph. Below, one very simple example, ...
13
votes
1answer
698 views

Adding ContourLabels changes contour colors?

I have an array s5 I want to plot using ListContourPlot ...
3
votes
2answers
255 views

TreePlot EdgeLabeling Style

I am trying to control the style for edge labels in treeplot and have run into a problem. Consider these two graphs: ...
3
votes
2answers
2k views

Plot Even Piecewise function

Is it possible in Mathematica to plot an even piecewise function like: $ f(x) = \begin{cases} 3t , 0 \le t \le \frac{\pi}{2} \\ 3t + 6 , \frac{\pi}{2} \le t \le \pi \end{cases}$ which has ...
3
votes
2answers
797 views

How can I create a legend for a Heat Map when I don't want to show the full range of colors?

I produce a heat map with legend with the code shown below ...
10
votes
2answers
268 views

Approaches For Creating Cycle Plots in Mathematica

I am trying to create a cycle plot in Mathematica, and I am having a hard time finding the right approach to create the visualization. Can anyone give me a few pointers as to how to approach the ...
4
votes
2answers
1k views

Combining manipulated plots

Let's say I have two manipulated plots: Manipulate[Plot[Sin[a x], {x, 0, Pi}], {a, 0, 10}] Manipulate[Plot[Cos[b x], {x, 0, Pi}], {b, 0, 10}] How can I create a ...
3
votes
0answers
42 views

Annoyance: Plot Markers disappear when ListPlot options are set in SetOptions instead of in ListPlot [duplicate]

Possible Duplicate: Why does ListPlot ignore some global options? Using this data: ...
6
votes
2answers
1k views

Singularities using VectorPlot

I am trying to plot a vector function of a fluid flow given by $\vec{V} = (\frac{-\cos(\theta)}{r^2},-\frac{\sin(\theta)}{r^2})$ I am trying to plot it in Mathematica using the command below, I ...
8
votes
4answers
522 views

Parametric regions

I'm trying to plot $a x^2 + b x + c$ where $a, b, c$ (and $x$) take on a range of values. I tried ...
14
votes
1answer
2k views

Vertically aligning two separate plots

How do I vertically align plots so that the two plots are displayed in a way that lines up with respect to the axes? The code I have so far is: ...
0
votes
3answers
2k views

How do I place frame ticks without having corresponding numbers? [duplicate]

Possible Duplicate: Remove tick labels, but retain tick marks in RegionPlot (and related functions) I need to display a 2D graph, say $y=x^2$ with tick-marks along the $x$ and $y$-axes but ...
7
votes
1answer
476 views

Demonstrating Ackermann's Function

The Ackermann function is an extremely fast growing function. There are some slightly different versions of the function, but the one that I am looking for can be defined as: $$ A_0(x)=x+1 \\ ...
7
votes
1answer
5k views

Mathematica code for Bifurcation Diagram

At the moment I am trying to construct a bifurcation diagram of the iterative function $f(x)=$ $ax-1.1975x^3$. I've scoured the internet for pre-made bifurcation diagrams and found many (mostly of the ...
5
votes
1answer
682 views

How do I reverse the axis in ParametricPlot?

In astronomy, right ascension is usually plotted with positive values that increase from right to left. I have seen discussions of successful and unsuccessful attempts to reverse the order of an axis ...
4
votes
1answer
253 views

How can I set the axis for ScalingFunction in a BarChart?

Why is the scaling function being applied to the wrong axis? Here, the log ticks are on the Y axis, but they should be on the X axis: ...
2
votes
1answer
226 views

Why are my FrameTicks not working on ArrayPlot?

For some reason the ticks don't work on this: ...
2
votes
0answers
98 views

Plot with Legends and Markers [duplicate]

Possible Duplicate: Creating legends for plots with multiple lines? I must say I have seen a couple of similar questions but they were not addressing my specific problem. Level one: I'm ...
10
votes
1answer
462 views

ListPlot filling not appearing when point is out of range

In a non-joined ListPlot one can specify that a filling line is shown for each point: ...
13
votes
3answers
1k views

Clustered and Grouped Bar Chart in Mathematica v8.0

How would I create a clustered and grouped bar chart that looks like this (which was painstakingly created using Excel)? I have seen examples for Mathematica v6.0 but none for Mathematica v8.0. The ...
2
votes
1answer
368 views

Vector Analysis: Why are the Grad, Laplacian and Div being evaluated to zero

For the non linear partial differential equation below, why are the Gradient, Laplacian and Divergence being evaluated to zero despite using the VectorAnalysis ...
1
vote
0answers
98 views

Show Legend with 3D ListPlot [duplicate]

Possible Duplicate: Creating legends for plots with multiple lines? I am trying to plot the color bar that shows the data range for the data plotted by ...
0
votes
1answer
441 views

Axes/Frame Label as Log base 10

I am trying to label one of the frames on a ListPlot as log_10(x). When I try ...
4
votes
1answer
515 views

How to combine a set of Plots, including self-drawn Inset/Lines/Circles?

I have a set of 9 plots which should be combined into one plot. Each of these plots contains a ListContourPlot, some circles, lines and an ...
4
votes
2answers
554 views

Scale x axes in ListContourPlot

I have list of data which I visualize by using ListContourPlot. ...
5
votes
2answers
1k views

How to plot a quarter of circle using Mathematica?

How can I plot a quarter of circle using x as abscissa while y as ordinate by taking advantage of the ...
3
votes
2answers
962 views

Can I adjust starting point when using ListPlot?

RandomInteger[3,3] produces a vector of length-3 randomly. But it counts index from 1. I need a vector, index of which starts from 0. Because of this, when ...
3
votes
1answer
813 views

can mathematica plot graph/visualize rotation matrices

just wondering is there any example online that show plotting of 3d rotation matrices like in the picture below (source)
6
votes
1answer
3k views

Fixed color scale in multiple density plots

I think there should be a simple solution for my current problem, but neither StackOverflow (or the help of Mathematica) or Google have it. I have to plot multiple density plots with a color ...
4
votes
2answers
236 views

2D grid as a 2D polygonal or smooth domain

I have a series of points, as a list of pairs of real numbers, each multiple of a base value. So they represent a subset of a grid. Given that this list, when represented with ...
4
votes
0answers
84 views

Editing preset schemes [duplicate]

Mathematica has many preset schemes, for example "DarkRainbow" and "FadingRectangle": ...
6
votes
1answer
366 views

Colours in BarChart[]

This question is a follow up from this one. I want to be able to specify a list of colours for my bars in BarChart. In responses to the question I linked to, ...
10
votes
2answers
868 views

How do I map a Mollweide projection onto a sphere?

I have this Mollweide projection of the Earth circa 600 million years ago (http://jan.ucc.nau.edu/~rcb7/370moll.jpg).(1) I want to map this onto a sphere. My results have big black splotches in ...
6
votes
4answers
2k views

Determining the RGB values of the default plot color

In Mathematica 7, the default plot color is a purple-like color (although I think it is not Purple). Is it possible to use Mathematica to determine the RGB color ...
1
vote
1answer
926 views

Adjusting the legend colors to match that in MatrixPlot

I am trying to show the legend with a ColorData for a discrete Fourier transform coefficient table. Here's a sample data table: ...
10
votes
4answers
3k views

Plot columns of table if some condition is fulfilled

I have a table with data, for example MT = {{1, 80.3, 1, 4, 68}, {2, 80.5, 1, 5.5, 102}, {3, 80.0, 0, 4.2, 78}, {4, 80.4, 0, 3, 17}, {5, 80.2, 1, 5, 180}}; ...
4
votes
2answers
116 views

Lesser and greater symbols in the axeslabels

I need a plot with $\Gamma^<$ as axeslabel using: AxesLabel -> { $\Gamma^<$} But I get an error. AxesLabel -> { $\Gamma^{a<b}$} works though. I think I've to tell mathematica that ...
15
votes
1answer
422 views

Using Evaluate and Evaluated -> True in Plot

A few use cases: (1) This, as expected, returns (almost) immediately: f[x_?NumericQ] := Evaluate[(Pause[1]; x)] Plot[f[x], {x, 0, 1}] (2) This takes ...
4
votes
2answers
108 views

Factor out invariant code from Plot

Given a simple Gaussian kernel UnscaledKernel[a_, b_, sigma_] := Exp[-(((a - b)/sigma).((a - b)/sigma))/2] and un-normalized smoothing function ...
15
votes
3answers
2k views

Data interpolation and ListContourPlot

I am fairly new to Mathematica and I have two quick questions on using it for a Hydrology and Hydrogeology class. One is about data interpolation and interpolating without any data defined in an area. ...
3
votes
1answer
415 views

Plotting multivalued function using ParametricPlot

I'm having a bit of trouble making a ParametricPlot from two curves. I defined two functions p and g as: ...
4
votes
4answers
416 views

Implementing a LineStyleFunction for line plots

I have data in the form: {{0, 3, 4}, {1, 3, -1}, {2, 4, -1}, ...} and I would like to implement something similar to ColorFunction for the style of a line. ...
10
votes
2answers
516 views

MovingAverage[] and Fit[] with data containing DateLists

I have data which has the following appearance: data = {{DateList, Real}, ..., {DateList, Real}} It's easy to visualize the data by using ...
10
votes
7answers
813 views

How do I get rid of a “jump” in my plot?

How can I prevent plotting functions from "connecting" inside a plot points that should "wrap around" outside the plot? For example, how do I eliminate the horizontal lines running across the ...
7
votes
1answer
321 views

How to implement hive plot for graphs in Mathematica?

I'm trying to implement a version of the hive plot advocated in [Kryzywinski, et al., 2012]. There are many examples of such graphs on the author's webpage. It would be good enough for me to have ...
3
votes
1answer
217 views

Customizing FrameTicks in DistributionChart

So I have been fighting with this for a while. I'm trying to get custom frame ticks on both the left and right side of a DistributionChart. It's not going very ...
16
votes
3answers
1k views

Get x and z coordinate from an image and make a parametric surface

In this blog entry, this step is mentioned: I grabbed an image of a Peugeot wine glass from the web and used the Get Coordinates function to digitize its outline, which I fed to Interpolation to ...
2
votes
1answer
578 views

ListPlot with Joined set to True

Let f[x_]=9x^2-2x-3; I want to make a table of f at x ={-1, -0.5, 0, 0.5, 1, 1.5, 2}. ...