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

learn more… | top users | synonyms (4)

0
votes
2answers
111 views

Plot column 1 against list of columns in column 2 (ListPlot)

I want to generalize this plotting command: Show[ListLinePlot[data1[[All, {1, #}]] & /@ columnlist] which takes a table “data1”, defined as: ...
1
vote
1answer
75 views

Delineate a Subset of Values on a 3D surface plot

This is building on a question previously answered by Rahul recently. I have a particular 3D surface plot on which I wish to delineate where z (the function) is between the corresponding x value and ...
8
votes
1answer
134 views

Four-way logarithmic plot

Say I have a dataset named "d" ...
0
votes
1answer
65 views

How to add horizontal, strecthed curly brace to plot? [duplicate]

I would like to refer to certain ranges of the x axis with the help of of some appropriately stretched and placed curly braces. I cannot figure out how to place a appropriately rotated and stretched ...
2
votes
1answer
109 views

Smooth animation of ListLinePlot

I have a sequence of 2D-points from uniformly sampling a time dependent process and plot this sequence with ListLinePlot. For example: ...
0
votes
0answers
26 views
0
votes
2answers
56 views

Represent Infinities in List Ploting

I'm trying to plot a big imported list of data as a result of a simulation, however some of the values are Infinity (represented by "xxx" for example), currently I'm replacing those "xxx" with a "out ...
1
vote
0answers
40 views

An Exclusion Question [duplicate]

I start with the following: sol = DSolve[{y'[t] == y[t]^2 - y[t], y[0] == c}, y[t], t]; y[t_, c_] := y[t] /. First[sol]; The output is: Solve::ifun: Inverse ...
1
vote
1answer
47 views

Creating varying dot size in a ListPlot based on weighted data

So i am producing a linear regression using weighted data and want to represent that visually with data points with higher weight being represented by a larger size dot in a ListPlot, Is there any way ...
2
votes
2answers
101 views

Stirling Approximation in Mathematica

I want to plot to show how accurate is Stirling approximation in Mathematica by plotting the Percentage error against n. I want to take the value of n at the interval of 10 starting from 10 to 1000. ...
5
votes
1answer
147 views

Unexpected result when using PlotRange in Mathematica 10 [closed]

Show[ Plot[x, {x, 0, 1}, PlotRange -> All], Frame -> True, PlotRange -> {{0, 1}, {0, 1}}, AspectRatio -> 1] gives the expected result in ...
0
votes
3answers
98 views

How to label Ticks in ListDensityPlot

I have some discrete data and want to make a density plot as ...
1
vote
1answer
85 views

How to group box-and-whisker in parallel for comparison in BoxWhiskerChart?

I have two collections of data: xdata and ydata ...
2
votes
2answers
90 views

How do I create a color plot that varies with angle?

I want to create a plot with a hue that varies as $l\theta$. $l$ is an integer and $\theta$ is measured modulo $2\pi$. My specific case is $l=10$, but I want to be able to vary $l$ as well. I have ...
3
votes
1answer
101 views

How do I plot a line delineating a subset of values on a 3D surface plot?

I have the following surface plot: ...
0
votes
1answer
55 views

3D sphere plot, along with singular points [closed]

I have very little experience with mathematica, what I am trying to do is plot 4 points on 3D axes, say a,b,c,d and then also plot a sphere radius r centred on a. Any help would be much ...
0
votes
1answer
52 views

TraditionalForm for PlotLabel with a parameter

This is a simple variation/spin off of this question, but I am having trouble. In the second example in the original question, I'm trying to get the $a=$ in the ...
0
votes
1answer
129 views

How to export figures with normal spacing in texts?

My OS is Ubuntu 14.04, and I use MMA 10. I export a figure ploted in MMA to a pdf file and then import the pdf in Latex, here is the sreenshot As you can see, the spacing in the text is odd. But ...
1
vote
2answers
178 views

How to obtain the best possibe NonlinearFit

Here is some sample data ...
1
vote
2answers
92 views

Why `Plot` does not obey the `AspectRatio` specification? [closed]

I am plotting the density function of a beta distribution and I specify that aspect ratio should be one. I expect the x and y axes should have the same scale (unit length), but it turns out not. How ...
22
votes
1answer
324 views

Visual representation of a Ranking over time (image provided)

[Disclaimer: I initially posted this question on stackOverflow 2 months ago and think it might be better suited for this forum (link to original question)] The graph below shows a ranking of ...
0
votes
2answers
63 views

Custom list plot ticks

Not as exciting as the buttocks question, but ... For some list log plots, it is faster to calculate for certain log values. eg: ...
11
votes
2answers
187 views

Combine Stereographic “Entity” Plot of Arctic Sea with Contour Plot

In the announcement of Mathematica 10 there were some very cool features for every geo-related researcher. Like this one what i'm trying to do is to overlay an ContourPlot onto this beautiful arctic ...
5
votes
1answer
112 views

How to share LineLegend among sub-figures in GraphicsGrid?

Using GraphicsGrid, I have put two figures that share the same x-axis in a row. However, I failed to let them share a common ...
207
votes
5answers
99k views

How do I draw a pair of buttocks?

I'm trying to develop a function which 3D plot would have a buttocks like shape. Several days of searching the web and a dozen my of own attempts to solve the issue have brought nothing but two ...
1
vote
1answer
86 views

Plot multiple solutions [duplicate]

I want to plot multiple solutions of an equation, so that one can differ them in the plot. The given equation is e.g. ...
0
votes
1answer
105 views

Physics Lab with mathematica [closed]

Well, I am very new at Mathematica. I have some datas from my physics Laboratory. I used to use physplot, a simple program to plot data points,but now I want to use Mathematica to plot those points, ...
1
vote
2answers
95 views

How to turn an expression into a number

I am working with a function that computes the covariance between two variables. After computing this, I'd like to use Plot or Plot3D to see how this covariance depends on the parameters of the mean ...
2
votes
2answers
164 views

Cumulative histogram with log-log scale

How to do a cumulative histogram on Mathematica on a log-log scale? This question is pretty straightforward, but a search didn't help me at all. Keep in mind that all I have is a list of n numbers ...
1
vote
1answer
71 views

How to extract contour functions from contour plot [duplicate]

I would like to extract the functions that describe the contours of a contour plot. For example, if I have the function: ...
0
votes
0answers
37 views

Direction of change plot in 2 images taken from video

I have two successive images from a video and I would like to plot the largest direction of change from the first image to the second image as a vector plot. For example, if image 1 was ...
1
vote
0answers
102 views

Plotting phase portrait from NDSolve (i.e., must plot x'[x], where $x=x(t)$)

I'm doing a double pendulum system and I wish to plot the phase portraits for each angle. I've successfully used NDSolve to solve for each of the angles. Let's just ...
2
votes
2answers
177 views

How do I add contour labels to contour plot?

I tried ContourPlot[f[x, y], {x, -2, 2}, {y, -2, 2}, ContourLabels->automatic] , but it messes up the contourplot. How can I just add values to the contours ...
2
votes
4answers
167 views

How to create 3d region of f[x,y] over triangular region on xy plane?

I need to create a VOLUME under f[x,y]= x (y^3 + 1)^(1/2) that's above the triangular region bounded by y=x/3, ...
1
vote
1answer
57 views

Plotting ODE solutions with two parameters

I have a system of two first-order ODEs with two parameters, a and b and I'm trying to plot the solution curve in the X-Y plane at a given initial condition for various parameter values. Can someone ...
0
votes
1answer
83 views

Problem with DensityPlot Plot3d of Heavisde function

I have problem with heavisde pi or theta function. When I plot them densly i.e. w[x,y] like this w[x_, y_] = Sum[HeavisidePi[x - i/100], {i, 1, 200}]; I get ...
2
votes
2answers
176 views

Parametric contour plot?

I am trying to plot a contour of a function g(x,y) (in particular, the contour g(x,y)=1) on a different set of axes than (x,y): I want to plot it on (f1(x),f2(y)), where f1 and f2 are (monotone ...
4
votes
1answer
117 views

Can anyone help me to get the solution of this first order ODE?

$\ y'(x)=-\sqrt(y(x)^3)$ with initial condition $\ y(0)=-2$. In fact, this is an example here in page 3-4 ...
1
vote
0answers
51 views

Align a plot with other rotated plot [duplicate]

i'm plotting two plots one of them is rotated 90º and has no axes labels, so my problem is that when i plot them together in a row the alignment options bottom top align the top to top or bottom to ...
0
votes
1answer
66 views

ColorFunction that depends on angle of line

I have a ListLinePlot, and I want the ColorFunction to vary as the angle, so that the color of the whole line depends on its angle from the x-axis. Here is a MWE of what I am doing: ...
1
vote
1answer
87 views

List(Line)Plot with a big jump

I am trying to plot a joined plot. Some possible ways would be ListPlot with Joined -> True or ...
2
votes
1answer
80 views

plot the numerical value of the average on a BoxWhiskerChart

Im using BoxWhiskerChart to get a boxplot of a matrix of two columns. I need to read the value of the sample average directly from the plot and not from the axes. ...
2
votes
1answer
75 views

Multiple dynamic equations for plotting?

Say I have a bunch of equations between variables e.g. h=bcd, i=hce, j=ihbd, ...
-1
votes
1answer
62 views

Help with the plot f(x)=2ln(-0.5x+2)-1 [closed]

I don't know how to write equation in the notebook. The graph doesn't appear when I tried.
0
votes
1answer
56 views

How can I graph the polynomial function? [closed]

There is no explanation for the polynomial function. The equation is f(x)=-2x^2-4x-3.
18
votes
1answer
380 views

How to write Morse code into Plot Dashing?

How can we define a dashing pattern in a plot such that it reads arbitrary text in Morse code? For instance Graphics[{DotDashed, Line[{{0, 0}, {5, 0}}]}] ...
1
vote
1answer
79 views

Make plots of solutions persist

How can the code below be modified so that at allow plots of solutions to persist upon clicking in the slope field. For example, after three clicks, the plots of all three solutions should remain. In ...
8
votes
0answers
88 views

Is plot polluting my context?

Whenever I plot something 3 temporary variables get added to my current context. Example (fresh Kernel): Plot[x, {x, -1, 1}]; Names["Global`*"] Output: ...
1
vote
0answers
43 views

The use of Evaluate in NDSolve and Plotting the answer [duplicate]

I am having a bit of hard time understanding the use of Evaluate when plotting the output of NDSolve. From the documentation, I enter: ...
4
votes
2answers
120 views

How to plot a function that is not defined after certain point

I'm plotting a function that I get after numerically integrating over another function. Something like: f[x_,y_]:=NIntegrate[g[x,y,z],{z,0,1}] I know that above ...