Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.
6
votes
2answers
248 views
How can I fill under a function in a plot just to right of a specified vertical line?
How do I plot a normal curve with filling under the curve and to the right of a vertical line. I would prefer that the vertical line starts at the x-axis and stops at the plotted curve.
Basically ...
1
vote
2answers
69 views
Scaling the x-axis in ListLogLogPlot[] or ListLogPlot[] in lieu of DataRange
I will present my existing workaround but I am wondering if there is a better solution that takes less time (my solution seems to ~double the time it takes to produce the desired plot). Using ...
7
votes
1answer
163 views
Simple problem with Manipulate and Plot
Would anyone have an idea why the following doesn't work:
rule = {z -> x^2 + 2 x + y};
Manipulate[
Plot[z /. rule, {x, 0, 10}],
{{y, 2, "y"}, 1, 5}
]
But ...
2
votes
0answers
67 views
Exporting plots
I want to export a plot which includes curve fitted to a multiple data set.
shortly ( I use autolegend function Here )
...
3
votes
1answer
137 views
How do I place a graphical marker (box, circle, …) in a MatrixPlot?
I'm trying to locate minima / maxima in matrices on a heat map. So I have my 2D matrix and did a MatrixPlot,
and I can find the position of the smallest value.
...
17
votes
3answers
716 views
Visualizing a Complex Vector Field near Poles
I've been playing around with a visualization technique for complex functions where one views the function $f: \mathbb{C} \rightarrow \mathbb{C}$ as the vector field $f: \mathbb{R^2} \rightarrow ...
5
votes
1answer
154 views
How to draw some 2D curves in a 3D plot?
I want to plot several 2D curves (Sin[x] at y=0, Cos[x] at ...
378
votes
6answers
143k 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 Plot Legends to have these ...
5
votes
1answer
103 views
Why ImportString[ExportString[, “PDF”], “PDF”] sometimes gives an extra point
Consider this code:
...
4
votes
2answers
167 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
180 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
127 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
53 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
1k 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
86 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
193 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
262 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
100 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
94 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
61 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
106 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
81 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
100 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
136 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
561 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
86 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
112 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).





