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

learn more… | top users | synonyms (4)

5
votes
2answers
219 views

Reproducing Derive's plot of $1 - x^2 - y^2$ in Mathematica

In Derive 6, if I plot $1 - x^2 - y^2 $, I get this: However in Mathematica 8 I get this: I'm using Plot3D[1 - x^2 - y^2,{x,-5,5},{y,-5,5}] What should I do ...
2
votes
1answer
186 views

Why is the test in my ColorFunction not behaving as expected?

In my code I have a ColorFunction that is meant to highlight all values of $f(x)$ that are greater than $x$ ...
2
votes
2answers
396 views

Using DateListPlot and Plot

I'm trying to do an example of trig modelling. Very simple, but hoping to use real data. I can get weather data for where I live here, and it makes a pretty reasonable sinusoid ...
1
vote
2answers
3k views

How to Plot an Infinite Series

I want to sketch the graphs of $$u(t,x)=\frac{1}{2}+\sum_{n\geq 1} \frac{1}{n\pi} ((-1)^n-1)e^{-n^2t}\sin(nx)$$ for $t=0, 0.01, 0.1, 0.5, 1, 10$ on the same axes. For $t=0$, I input ...
2
votes
1answer
202 views

Plotting a dot product

From a conic equation obtained from a dot product, I want to plot its 2D graph, while being able to manipulate the variable. ...
11
votes
2answers
407 views

How can I prevent ColorFunction from disabling antialiasing in graphics?

When I use ColorFunction, the appearance of my plots is ruined, changing from this which has the normal smooth lines and antialiased fonts, to this in which ...
3
votes
2answers
1k views

How to assign different colors to list plotted in ParametricPlot? [duplicate]

Possible Duplicate: Difference in Plot when using Evaluate vs when not using Evaluate I am plotting galaxies and I would like to color them according to their redshift values using a ...
1
vote
4answers
2k views

How do I plot x[t] vs. x'[t] (where x[t] and x'[t] are solutions to NDSolve)?

I have a differential equation which I solved using NDSolve. I can easily plot x[t] vs. t, x'[t] vs. t, but.... how do I plot x[t] vs. x'[t]? I tried using the Evaluate function to simplify things, ...
20
votes
2answers
2k views

Joining and interpolating data points

I wonder what is the best practice for interpolating curves? Usually I'm using BSplineCurve and adjusting SplineWeights so it ...
6
votes
1answer
374 views

Inconsistency in Histogram's “Probability” Binsize

Context Let me define a Probability distribution (following the documentation and with some connection to this question) ...
14
votes
2answers
714 views

How can I create facetted histograms?

I love Mathematica, and I would love to be able to use it for all of my data analysis tasks, but there is one type of analysis which I find almost trivial in R, and I have no idea how to approach in ...
12
votes
1answer
673 views

Plotting graphics as ASCII plots

I'm occasionally in a situation where I have to use Mathematica on the terminal. I'd like to visualize the solutions I get from NDSolve, but when I use ...
3
votes
1answer
473 views

How to make vertical frame label read top down

In Mathematica, default frame label will put labels at the bottom and the left. The label on the left reads from the bottom to the top. I would like to also put label on the right of the frame, but ...
5
votes
2answers
289 views

Median marker style in BoxWhiskerChart

I was trying to adapt the BoxWhiskerChart to obtain a minimalistic quartile plot, like this: What I obtained is the plot below that is, however, unsatisfying; ...
1
vote
1answer
394 views

How to plot population growth model?

How would I draw the graph of a function dy/dt=((Ry^2)/T)-Ry in Mathematica? I have tried a few times but the constants are confusing me.
11
votes
3answers
502 views

Labeling plots without evaluation

This is my first question here so please excuse my mistakes. Let us consider a rather contrived example: ...
8
votes
3answers
3k views

Given a Table of Plots with some parameter, how would I mark each of the plots with that parameter

I've got a two variable function that I'm plotting against one axis for a few different values of a parameter ...
4
votes
1answer
295 views

Plotting an inequality with “plot” axis

Whenever I try to plot an inequality with "RegionPlot", all my plots come out in boxed frames. Is there a way to plot inequalities where I get my standard x and y axes crossing each other? For ...
6
votes
3answers
405 views

Plotting $\omega(k_x, k_z)$ in $(\omega, k)$ plane with assumption of $k^2 = k_x^2 + k_z^2$

I'm currently studying atmospheric-gravity waves and their dispersion relations. For analysis I need to plot the dispersion function: \begin{equation} \omega^4 - \omega^2\cdot C_s^2(k_x^2 + ...
6
votes
2answers
371 views

Plotting All Possible Points Belonging to a Group Orbit

Given that $$X = \{(x,y,z) \in \mathbb{R}^3 |\, x^2 + y^2 + z^2 - 2(xy + xz + yz) = k\}\,,$$ where $k$ is a constant. Also given that a group $G$ is represented by $$\langle g_1,g_2,g_3|\, g_1^2 = ...
4
votes
1answer
895 views

Visualize eigenvectors at specified points?

I am very new to Mathematica and I got stuck about visualizing eigenvectors 2D and 3D. I want to visualize my largest eigenvector field of tensor data(15x15). I wrote this code for instance : ...
1
vote
1answer
392 views

Lines with label in Plot options syntax

I wrote a little function to add lines with labels to plots. It just creates customized {GridLines -> ..., Epilog -> ...} code: ...
4
votes
1answer
259 views

Use single ListPlot for multiple sets of data (on separate graphs)

This is the code I have working for a single set of data. Is there a way I can structure this to have multiple sets of data? ...
0
votes
2answers
170 views

Time varying equation plot [duplicate]

Possible Duplicate: How do I use Map for a function with two arguments? I have a function, e.g. $T(x,t) = \exp(-t)\sin(x)$ and I want to plot, on the same, or different graphs, $T$ as a ...
3
votes
2answers
802 views

Trying to generate a list of data to plot a graph with error bars. Need help creating the looping function

This is the sets of data I want to put into a form which will allow me to plot error bars from the min and max data. ...
3
votes
2answers
591 views

How to draw a 2D curve as epilog on a 3D surface plot?

I'd like to draw Plot[Re@Sin[x+I*2], {x, -10, 10}] as an epilog on Plot3D[Re@Sin[x + I*y], {x, -10, 10}, {y, -10, 10}] and ...
2
votes
1answer
458 views

How do I plot a system with gain, first-order lag and time delay?

I want to plot the output response of a system with gain, first-order lag and time delay, where the transfer function is tf = 2 Exp[-0.1 s]/(.1 + s) To plot a ...
12
votes
2answers
1k views

Using a ListDensityPlot to map color onto a ListPlot3D graph

I have a 3 column list of data points. The first two columns correspond to x and y coordinates, with data points creating a surface in the z direction from column 3. This gives me a nice wavy ...
13
votes
1answer
848 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
831 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
458 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
665 views

Adding ContourLabels changes contour colors?

I have an array s5 I want to plot using ListContourPlot ...
3
votes
2answers
237 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
763 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
266 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 ...
3
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
41 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
968 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
479 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
456 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 \\ ...
5
votes
1answer
4k 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
654 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
236 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
212 views

Why are my FrameTicks not working on ArrayPlot?

For some reason the ticks don't work on this: ...
2
votes
0answers
96 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
432 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 ...