Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.
1
vote
1answer
57 views
How can I assign specific colors and sizes to 2D coordinate arrays being plotted with ListLogPlot?
I'd like to plot two sets of coordinates in two different arrays using ListLogPlot, and be able to individually specify the sizes and colors of the datapoints for each array.
Things seem to work ...
5
votes
1answer
90 views
How can I change the size of the plot markers
I use ListPlot in order to plot four sets of data and also insert legends in my plot. Here is the Mathematica code
...
0
votes
1answer
75 views
How to manipulate a Fourier sine series?
I would like to plot the Fourier sine series for $f(x) = x$.
I would like to manipulate the parameter n from $0$ to $10$ and plot the sine waves over $(0,1)$. My ...
-2
votes
0answers
119 views
What does “# & /@” do? [closed]
This code plots a crystal lattice. a and b are the primitive vectors and tauA and tauB are the locations of atoms A and atoms B. So far there's two things I don't understand:
What does the "@@" in ...
0
votes
2answers
83 views
Plotting array of vectors with conditions
Given data in the form
list={{{1,2},{3,4},{5,6}},{{7,8},{9,10},{11,12}},...}
a matrix where elements are 2-element vectors, what is a efficient way to plot this ...
5
votes
1answer
98 views
Error invoking Information on functions containing Legended
In adapting some plotting functions to utilize the PlotLegends option of version 9, I came across the following errors:
...
2
votes
1answer
105 views
rasterListContourPlot With PlotLegends in Mathematica 9
Jens Nöckel has write functions about (List) Contour Plots with rasterized shading in Mathematica:
http://pages.uoregon.edu/noeckel/computernotes/Mathematica/rasterContourPlot.html
It works well. ...
1
vote
1answer
52 views
How can I nicely overlay fits for multiple arrays with ListPlot or ListLogPlot?
I'm plotting multiple lists with ListPlot[] or ListLogPlot[]:
ListLogPlot[{ListA, ListB, ListC, ListD, ListE}, PlotRange -> {{0, 100}, Automatic}]
I also have ...
0
votes
1answer
87 views
Reversing axes to get Poiseuille profile [duplicate]
I am trying to plot my velocity profile, similar to this plot (not the arrows, just the shape)
Here is my function
...
1
vote
1answer
55 views
A weird thing about ListPlot3D [duplicate]
I plot the function f(x,y). x goes from 0 to 25 and y goes from 0 to 12.
So, my plot should look elongated since the range of x is twice as long as the range of y.
The problem is that, mathematica ...
0
votes
0answers
5 views
the x-axis is between 0 and L [migrated]
I have a function such as f (x) = 1 + x / L and I would to do graph of this function, where x is between 0 and L (the x-axis is between 0 and L).
3
votes
2answers
185 views
Plotting heat equation in a Manipulate expression
I have a 2D heat equation $u_t = \alpha (u_{xx} + u_{yy})$ with conditions:
$u(x, y, 0) = 300$,
$u_y(x, 0, t) = \mu_1(x)$,
$u_y(x, 1, t) = \mu_2(x)$,
$u(0, y, t) = \mu_3(y)$,
$u(1, y, t) = ...
1
vote
0answers
66 views
Mathematica 3-D plot (discrete/continous)
I want to visualize a 3-D function in Mathematica, Say F(x,y,z)=0, But there is a small difference here with typical z=f(x,y). Because of it's complexity, I decide to consider the z parameter as a ...
1
vote
1answer
74 views
How to insert a zoom inside the main plot
As the title indicates, I want to add inside the main plot (preferably at the lower left part) a zoom. Here is the corresponding Mathematica code:
...
3
votes
1answer
110 views
Exporting PDF file - incorrect graphic
I export graphics to PDF using:
Export["/path/figure.pdf", plotname]
It gives me more than enough quality for PDFLatex. But somehow, some exported plots have ...
4
votes
1answer
77 views
Why do all plots open in new windows when I use JavaGraphics?
I want to open only one plot in new window.
When I use <<JavaGraphics` all plots open in new windows.
I put ...
0
votes
2answers
159 views
Difference of old Graphics`Graphics3D`ListSurfacePlot3D and the current ListSurfacePlot3D
Consider the following example data which creates the lines of a cylinder
...
0
votes
3answers
119 views
Finding the common areas of two contourplots
I used ListContourPlot to specify an area for which the function value is less than a number.
For example consider the following areas:
...
0
votes
1answer
67 views
0
votes
1answer
109 views
Plotting two surfaces and visualizing their intersection
Trying to plot the following two functions to show points of intersection.
...
0
votes
2answers
47 views
How to manipulate plot range with fixed axes
I want to achieve something like this
Manipulate[Plot[Sin[x], {x, 0, r}, PlotRange -> {{0, 10}, {-1, 1}}], {r, 0.1, 10}]
but my function in place of ...
4
votes
1answer
155 views
Contour heat graph (ListContourPlot?)
I have solved 2D incompressible Navier Stokes and written out a .dat file that includes x,y,u,v,p values. I am trying to get a 2D color heat graph like this one for my data
Here is what I have done ...
1
vote
1answer
77 views
Mathematica plots a discontinuity in piecewise function that does not exist [duplicate]
I have the following function defined:
...
0
votes
1answer
51 views
how to plot log-log histogram in Mathematica 7
I have a large array of real (positive and negative) numbers and I want to plot the histogram of it. I can use
Histogram[data, "Log", PlotRange->All]
but ...
0
votes
1answer
88 views
Plotting a 2-D shape given its border points [duplicate]
I have the border points of a 2-D body and wish to fill its interior with a solid color. Let us say I have $N$ such points stacked in the $N \times 2$ matrix $A$ so that the first column indicates the ...
2
votes
2answers
140 views
How to increase the number of minor ticks in a plot?
I want to increase the number of minor ticks in a plot, but I don't want to label them. I searched through this site and also Mathematica documentation, but I didn't find any solution yet. Could ...
1
vote
2answers
134 views
Probability density histogram with unequal bin widths
I am confused by output of Histogram and HistogramList for probability density ("PDF") when ...
2
votes
1answer
78 views
How do I plot Numerical Range of two hermitian matrices
Let $A_1$ and $A_2$ be two $3\times 3$ hermitian matrices. Then their numerical range is defined as two-dimensional set
\begin{align}
\mathbb{S}=\{\left[u^HA_1u,u^HA_2u\right]\in ...
1
vote
1answer
87 views
List plot 3D not showing correct data
I have a list of values of the form {{a_1,b_1,c_1},{a_2,b_2,c_2}...} where a goes from 0 to 30, ...
2
votes
1answer
133 views
How do you draw a straight line with PolarPlot?
I can't figure how to draw a line with PolarPlot.
A vertical line through a is $r \cos(\theta) = a$, so
...
1
vote
2answers
101 views
Efficient Data Entry / Manipulation with Many Datasets
I currently have a simple task of graphing many different datasets (26 here, with many different instances where I'll need to do, say, 26 different ones from the same template). I'm trying to ...
7
votes
2answers
172 views
How do I create an ellipse bubble chart?
I have some data that I would like to plot as a bubble chart. The data is formatted as {{val1_mean,val1_sd,val2_mean,val2_sd},{val1_mean,......}}. What I would like to do is plot a bubble chart where ...
2
votes
1answer
78 views
Custom (Frame)Ticks fail when using Mathematica's script engine
I want to define my own ticks in a DateListPlot. It works quite well when I use the code in a Mathematica Notebook but breaks somehow when using it via ...
1
vote
3answers
39 views
Edit AxesLabel from an existing plot
I have a really complex function that takes a few hours to plot as a function of a parameter.
Few days later I realised that I named the axes wrong. Is there an easy way to edit the AxesLabels without ...
4
votes
1answer
153 views
How to graph a sphere with cartesian equations?
I'm new to Mathematica and I need to ask how to graph a sphere, cylinder, etc.. using cartesian equations.
For example in sphere's case $x^2+y^2+z^2=1$
I tried to use ...
7
votes
2answers
287 views
Basins of Attraction
How does one shade the basin/s of attraction of a phase plot in Mathematica? I have been trying to do this using the system $\dot x = y$ , $\dot y = -9\sin(x) - 0.20y$ and have gotten nowhere.
1
vote
1answer
48 views
Control formatting of a Text element in a plot?
Is it possible to define the format for a part of Text in a plot? For instance, is it possible to have v bold and ...
3
votes
1answer
64 views
FrameTicks given through Show does not work with LogLogPlot
This is similar to the closed topic: Frame ticks for a Log Log plot [closed]. Let me reuse (rm -rf)'s example here.
FrameTicks given through Show does not appear if used with LogLogPlot:
...
7
votes
4answers
156 views
Drawing minor gridlines
What's the best (most elegant, shortest, easiest to read) way to add minor grid lines to a plot?
Here is an example:
...
5
votes
4answers
138 views
2
votes
1answer
102 views
Strange spikes in my surface
I'm getting strange spikes in my surface S with the code below. PlotPoints seems to help, but it doesn't solve the problem. Any ...
0
votes
1answer
84 views
Plot a function over a specific domain
I have a function that is defined on a specific domain for example the function $$f(x,y)=(x-0.5)*(y-0.5)$$ defined on $\Sigma$ which is the circle $(x-0.5)^2+(y-0.5)^2=0.5^2$
How to plot $f$ over ...
0
votes
1answer
40 views
Reflection transform of function [duplicate]
I am trying to find the reflection function. Here is my function and its graph.
...
1
vote
1answer
92 views
Non linear equation phase space
As a supplementary to my question solution of differential equation I post a new question of how is it possible to make a Table that has elements the solutions of a non linear differential equation, ...
3
votes
1answer
102 views
Issue with ListDensityPlot when using logarithmic scale
I have got some frequency response data from a speaker measured with different incident angles between speaker and microphone taken in an anechoic chamber. The data can be found here.
The whole ...
0
votes
1answer
65 views
3D plot in Mathematica [closed]
I have data in my file format .dat. The data generated using 'C' program. This data file having 3 columns. How can I import this file using Mathematica? Is is possible to plot using ListDensityPlot() ...
7
votes
2answers
190 views
Diagonal Tick Marks
I would like to draw diagonal tick marks around a plot, and simultaneously rotate the tick labels as well. I've mocked up what this would look like:
Is there an easy way to do this in Mathematica? ...
-1
votes
0answers
92 views
How can I make Mathematica run more slowly? [duplicate]
I want to have a delay time between evaluating a Plot expression and seeing the results. My code is very short and simple so Mathematica shows the output instantly. ...
0
votes
0answers
71 views
Why is PhaseMargins going nuts? [closed]
I have a transfer function:
Gs = TransferFunctionModel[10/((s + 1) (s - 1) (s + 9)), s]
I made a Nyquist plot and it looks like what I expect.
Gain margin ...
1
vote
1answer
65 views
Additional label on axis - 2D plot
I am finding a local maximum of a curve and I want to make the plot easier to read. I added a point to where the maximum is but I would also like to:
1) add a tick with text below it where the x ...






