Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.
5
votes
1answer
102 views
Why ImportString[ExportString[, “PDF”], “PDF”] sometimes gives an extra point
Consider this code:
...
4
votes
2answers
166 views
rotating 3d text
Is it possible to create a 3d rotating text like this:
animation here.
Here is my try so far:
...
0
votes
0answers
49 views
LogLinearPlot analog for Plot3D? [duplicate]
Is it possible to make 3D plot in logarithmic coordinates? I need analog LogLinearPlot to plot 3D figure in logarithmic x, or y, or both coordinates.
0
votes
1answer
77 views
Labelling Curves Using ListLogLinearPlot within DynamicModule (So Close)
I currently have a large number of time-series datasets in the form where the name and time-series transposed data, so I have a list of lists of names for datasets and their time-dependant data.
The ...
0
votes
4answers
112 views
How can I make a Plot over a discrete set of domain points?
I want to plot the function $y=2^x$ at the $x$-values given by Table[Prime[n], {n,20}]
How should I write the plot function? Like so?
...
2
votes
3answers
179 views
Selective inclusion of elements in BarChart Legend
Further to my previous question, is there a concise way - amenable to automated setting in a package so that it can be accessed globally - to eliminate some legend item that would otherwise show? For ...
2
votes
2answers
99 views
Why do Plot and ListPlot use the last PlotStyle when only one thing is plotted?
When a list of PlotStyles is given, ListPlot behaves as expected when there are multiple things to plot:
...
-1
votes
1answer
123 views
How to plot two functions together? [closed]
I have defined two function like f[Rp_] := Sin[0.5 ArcSin[Sqrt[(3 Rp^2)/((2 - Rp)^2 + 3 Rp^2)]]] and ...
0
votes
2answers
52 views
Changing FrameTicks of ListPlot
I am unable to change the frameticks for my list plot.
I am trying to plot a growth rate omega function which looks like this:
...
12
votes
5answers
994 views
Fixing quirky typesetting in plot labels
Consider this example plot.
Plot[
1-Exp[-x],
{x,0,3},
AxesLabel->{"thickness (\[Mu]m)","power density (W/m^2)"}
]
Let us hold the typographical quality ...
1
vote
0answers
47 views
Comparing data sets with fade transitions (Code speed-up)
I am using the utility below for data comparison. However, with my real (more complex) charts the processing is quite slow, so setting the Pause time under ...
5
votes
4answers
139 views
0
votes
1answer
139 views
How do I implement Dynamic Graphics? [closed]
I'm interested in learning to implement graphics like to those shown here
My pendulum c++ code (source & csv's located here) outputs the positions of each mass into separate csv files.
-== My ...
3
votes
1answer
102 views
2
votes
1answer
177 views
Using mesh for a single function inside Plot
Plot[{Sin[x], Cos[x]}, {x, 0, 10}, Mesh -> {{0, \[Pi]}},
MeshShading -> {Black, Red}]
In the above, how can I specify that I want the mesh for just, ...
1
vote
1answer
83 views
3
votes
2answers
113 views
Why do I get empty graph when adding 'Abs' function?
Can someone be so nice to provide some help for this particular situation? I try to plot a graph of a derivative which contains modulus. Without it the graph is drawn correctly:
But when I wrap the ...
2
votes
1answer
80 views
What causes strange line artifacts to appear in plots with certain PlotRanges?
I have seen this strange plotting artifact occur before and I was able to make it go away by changing the PlotRange. However, this time I need the prescribed PlotRange to be what I define and I get a ...
2
votes
2answers
192 views
Equivalent of MATLAB's “hold on” function
I'm making an animation where the number of iterations is known. I tried using Dynamic, as I prefer updating in real time over generating data before plotting.
I ...
9
votes
2answers
261 views
Graphically representing error in a Riemann Sum
I am trying to graphically represent the error in a Riemann sum. My current code looks like:
...
1
vote
2answers
99 views
Count and plot the number of solutions in an interval
I have equations depending on one or more parameters and I want to find and plot the regions in the parameters space in which there are a specific number of solutions.
For definiteness let's ...
1
vote
1answer
93 views
Dynamically labeling a family of curves [duplicate]
I have created some simple code which generates a plot. This plot contains a family of curves created by changing a single parameter "k". I use the Table function within the Show function to iterate ...
1
vote
2answers
73 views
Why will my plot not generate my entire plot?
I am trying to plot a sum of multiple HeavisidePi functions. A typical example would be something like this:
...
1
vote
1answer
70 views
1
vote
2answers
59 views
Font size in PlotLegends, using Table to generate the list in the legend
I am currently trying to get to graph with several functions as below. My problem is that I cannot change the font size in the legend (authomatically generated numbers by "Table" function). This code ...
2
votes
2answers
212 views
Spreading colors in ListContourPlot
I have a data file with triplets. The first two numbers indicate the x and y position, while the third one is the log10 value of a particular indicator. I want to create a 2D plot in which the ...
9
votes
2answers
173 views
Tailoring RegionPlot3D with PlotPoints?
This seemingly tame solid gives Mathematica (v9) a bit of a workout if you want to generate a good picture:
...
5
votes
1answer
101 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:
...
1
vote
0answers
36 views
Scaled ColorData Function [duplicate]
I have a four-dimensional array c, in which the first dimension represents time and the other three dimensions represent (x,y,z) ...
5
votes
1answer
173 views
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 ...
0
votes
1answer
79 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 ...
5
votes
1answer
95 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
...
1
vote
2answers
135 views
Probability density histogram with unequal bin widths
I am confused by output of Histogram and HistogramList for probability density ("PDF") when ...
6
votes
3answers
560 views
How do I plot Thomae's function in Mathematica?
I wanted to plot this function
$$f(x) =\begin{cases}
1 & \text{if } x= 0 \\
\tfrac1{q} & \text{if } x = \tfrac{p}{q}\\
0 & \text{if } x \in \mathbb{R}-\mathbb{Q}
...
0
votes
2answers
85 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 ...
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? ...
2
votes
1answer
107 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. ...
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
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 ...
1
vote
1answer
56 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
189 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) = ...
2
votes
3answers
515 views
How to plot an ellipse?
I'm new to Mathematica, and I'm finding it difficult to plot an ellipse.
I tried using
Plot[(x/5)^2 + (y/3)^2 == 1, {x, -5, 5}, {y, -3, 3}]
but I'm getting ...
5
votes
1answer
172 views
LogPlot axes labels destroyed when working in high precision
(I'm using Mathematica 8.)
I have a Taylor series:
poly = Normal[Series[E^x, {x, 0, 10}]]
I want to produce a log-linear plot of the error. This is easy enough ...
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 ...
3
votes
1answer
111 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 ...
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:
...
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:
...
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 ...





