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
1answer
149 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 ...
1
vote
0answers
51 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) ...
1
vote
1answer
108 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 ...
8
votes
1answer
1k 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
299 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 ...
1
vote
2answers
198 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
219 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: ...
3
votes
1answer
309 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
155 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
128 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
169 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 ...
3
votes
3answers
732 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
1answer
424 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
320 views

Exporting PDF file - incorrect graphic [closed]

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
245 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
277 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
187 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
2answers
549 views
0
votes
1answer
1k views

Plotting two surfaces and visualizing their intersection

Trying to plot the following two functions to show points of intersection. ...
0
votes
2answers
954 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 ...
3
votes
1answer
458 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 ...
2
votes
1answer
934 views
1
vote
1answer
261 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
130 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
1k 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
468 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
188 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
254 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
597 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
201 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 ...
8
votes
2answers
499 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
233 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
92 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
5k 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 ...
13
votes
2answers
1k 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 $$\begin{align*} \dot x &= y\\ \dot y &= -9\sin(x) - 0.20y ...
1
vote
1answer
61 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
132 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: ...
9
votes
4answers
825 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
191 views

FrameLabel not printing completely

Running this code: ...
2
votes
1answer
164 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
254 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
101 views

Reflection transform of function [duplicate]

I am trying to find the reflection function. Here is my function and its graph. ...
2
votes
1answer
374 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
269 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 ...
13
votes
2answers
450 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
vote
1answer
272 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 ...
5
votes
3answers
1k views

How to speed up the plot of NIntegrate?

Here is a toy example: f[t_] := NIntegrate[Sin[x], {x, 0, t}]; Plot[f[t], {t, 0, 10}] // Timing Even such a simple example will take 2.8 seconds on my computer. ...
2
votes
2answers
310 views

ColorFunction based on data

I have a list of numbers, and I would like to plot them using ArrayPlot (which is easy, usually :)). I would like to be able to color the elements of the plot based on the average of the list: one ...
3
votes
1answer
2k views

Making axis numbers larger on Mathematica plot

I want the numbers along the axis to be larger than the default value. Can this be done? The reason I am asking is because I frequently make charts in Mathematica and use them in Word. I export ...
7
votes
3answers
254 views

Converting Mesh in Density Plots to a Graph

Consider the following line of code: ...