Tagged Questions

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

learn more… | top users | synonyms (4)

10
votes
1answer
449 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
355 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
419 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
499 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
537 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
928 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
786 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
2k 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
234 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
356 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
841 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
1k 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
892 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
407 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
402 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
409 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
490 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
798 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
317 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
214 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
995 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
563 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}. ...
4
votes
3answers
2k views

Parameters in plot titles

My issue is how to mix strings with variables, specifically in the context of PlotLabel: I can put a string as my plot title, and I can also put a variable as a ...
4
votes
2answers
301 views

Plotting two functions with dependent input function

I have defined a function: myJ2[n_] := 1/n* Total[RandomVariate[NormalDistribution[0, 1], n]^2] This is basically an approximation to the gaussian integral. I ...
4
votes
2answers
518 views

Loop and do operations on Matrix, then graph the results

I'm trying to do some operations to a matrix in a loop, and then I want to graph the results. The results are pair of numbers. Can I store the results of each iteration on "something" and the use ...
3
votes
0answers
237 views

Scale plot display area (within the frame)

I have 2 data sets of equal length. I've done a LinearModelFit of them which gives me: ...
0
votes
0answers
60 views

Make PlotMarker explanation [duplicate]

Possible Duplicate: Creating legends for plots with multiple lines? I have a ListPlot of data points. To distinguish between datapoints coming from different sources, I give them different ...
11
votes
2answers
771 views

How to vary color of fill between listplots based on y-distance between them

I have two lists with the same x-values but different y-values. I have used ListPlot to plot and fill the space (line) between them; however, I would like the color ...
14
votes
1answer
351 views

Why do Arrowheads interfere with ImagePadding?

Bug still present in version 10 under Windows. In a recent posting, Belisarius solved a problem related to the display of arrows on the x and y axes by setting ...
11
votes
1answer
874 views

How could I add arrows to the axis of a figure?

It is easy for me to add arrows to the axes of the a figure by taking advantage of AxesStyle -> Arrowheads[] when the differences between the horizontal and ...
17
votes
4answers
2k views

Spherical density plot of data set

I have a somewhat large number of 3-dimensional unit vectors ( ~ 100 000 unit vectors), and I am trying to visualize their distribution. First thing I tried was ...
4
votes
2answers
252 views

Transform x-scale of data for e.g. MatrixPlot

I have to transform in a nonlinear way the x-scale of some data for a MatrixPlot (or ReliefImage or ...
1
vote
1answer
466 views

How do I make my discrete plot thicker?

I am making a discrete plot and a regular function plot together. But my curve is so thick that for color-blind people, it's pretty much impossible to see the black dots of my discrete plot: ...
4
votes
1answer
507 views

RevolutionPlot3D of 4 piecewise functions around X-axis crashing mathematica

I'm trying to rotate 4 piecewise functions around the X-axis using RevolutionPlot3D. The 4 functions I have are: ...
2
votes
4answers
318 views

plot data differences

I have the following data: ...
2
votes
1answer
387 views

How specify PlotRange and display bitmap over plot in DateListPlot?

The problem came up in a plot of RGB data obtained by imaging the variable star d-Cephei with a DSLR camera on several successive nights. I tried to plot the R, G, B intensity points for each day in a ...
2
votes
1answer
413 views

Defining regions for `Exclusions`

I have the following function I want to plot in 3D (For simplicities sake we can say $a=5,b=-1,c=3$.) ...
12
votes
2answers
534 views

Replicating a discontinuous graph

I'm trying to replicate a graph from my math book for my notes as well as to learn Mathematica. I was hoping someone would be able to help me figure out how to add the open points to the graph, and ...
440
votes
6answers
156k views

xkcd-style graphs

I received an email to which I wanted to respond with a xkcd-style graph, but I couldn't manage it. Everything I drew looked perfect, and I don't have enough command over ...
11
votes
1answer
1k views

Make a density list plot/histogram from large, pre-binned data set?

I have a large data set consisting of $\mathcal{O}(10^9)$ two-dimensional points. In order to save memory and time I have pre-binned these into a uniform grid of $500 \times 500$ bins using Fortran. ...
19
votes
5answers
879 views

In a ListPlot of LinearModelFit, Fill to the regression line

In the help for LinearModelFit, the regression line can be added to the scatter plot like this: Show[ListPlot[data], Plot[lm[x], {x, 0, 5}]] Is it possible to ...
-1
votes
1answer
1k views

How to specify DataRange in a ListPlot with an imported set of data

So I've been trying to import a large set of data (6900 point pairs) from an excel (.xls) file. The Exel file has 2 columns of numeric data. I've also been trying to plot this data, but when I do, it ...