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

learn more… | top users | synonyms (4)

2
votes
1answer
47 views

SmoothHistogram inside Show doesn't respect plot range clipping?

You can try this for yourself. Run the following code a couple of times: ...
0
votes
0answers
32 views

Trace two DateListPlots?

I currently have two DateListPlots in the same graph, with two different y-axes. I downloaded the package "TwoAxisDateListPlot" to accomplish this with ease. Now I want to be able to trace both of the ...
1
vote
1answer
36 views

Plotting CSV files with UTC Universal Time

So I have many CSV files in format like this: 2014-12-11T16:13:13.038337Z , 3.90092 2014-12-11T16:14:13.456558Z , 3.89734 2014-12-11T16:15:12.444318Z , 3.90092 I imported a CSV file ...
0
votes
1answer
106 views

Dealing with implicit function

I encounter a big problem when I use Mathematica to deal with implicit functions. ...
7
votes
4answers
270 views

Plot of Implicit Equations

I've read Cool Graphs of Implicit Equations recently. In the article, it mentioned a software GrafEq which can draw graphs of arbitrary implicit equations. For example, And I've tried several ...
6
votes
2answers
102 views

Method options for DensityPlot and ContourPlot

What Method options are allowed for DensityPlot and ContourPlot? I am unable to find this ...
2
votes
1answer
157 views

How can I improve ContourPlot to get smooth curve?

I am working on the ContourPlot to creat contour line of a InterpolatingFunction recently. This is my data. This is my simple ...
1
vote
1answer
70 views

MathematicaPolarPlot Question [on hold]

Using this as an example PolarPlot[{1,Sin[3 θ]},{θ, 0, 2 π}] Now consider the family of polar curves r=a+Sin[3 θ] as we vary ...
0
votes
1answer
116 views

How do I plot results of complicated calculations in Mathematica?

I am new to Mathematica and am struggling with making plots of how features of solutions vary with parameters. For example, I can find the eigenvalues and zeroes of a Sturm Liouville problem (showing ...
-3
votes
0answers
58 views

Polar Plot Confusion [on hold]

Make a Manipulate that places a green point on the rose r=a+Sin[θ] at the point {r[t] Cos[t],r [t]Sin[t]}. You do this by using ...
6
votes
1answer
272 views

Export to PDF on OS X, font missing on Windows

Here is another problem with Mathematica plots and PDF. I have Mathematica 9.0.1 on Mac OS X. I want to export my plots to PDF to include them in a LaTeX document. If I export the plot with the ...
5
votes
2answers
148 views

How can I use ContourPlot to creat streamline for a free surface domian: proper arrow orientation and correct domain?

I get into trouble when I use ContourPlot to draw streamlines in a free surface flow domain. This is my data.The data are a little bit big, please be patient. ...
4
votes
2answers
113 views

Specifying and solving a PDE on an L-shaped domain

I wish to solve Laplace's equation with Dirchlet boundary conditions on an L-shaped domain as described here http://www.inf.ethz.ch/personal/tulink/FEM14/Ch1_ElmanSyvesterWathen_Ox05.pdf I know how ...
7
votes
2answers
175 views

Understand MeshFunctions with Intercepts

Bug introduced in 7.0.1 or earlier and persisting through 10.0.2 or later While I've been thinking about this question, I tried to visualize the Intercepts. I use three snippets, actually snippet ...
0
votes
0answers
35 views

Align axes in GraphicsGrid - with one rotated figure

I would like to align the axes of the three plots: g3, gPosteriorMarginalMu and gPosteriorMarginalSigma: ...
0
votes
1answer
32 views

Add a legend to a DiscretePlot - Version 8 [duplicate]

I have found several topics with legend issues but no answer to my problem. I have a function and I need to plot it for integers only (hence discrete plot) and then add a legend too. But ...
1
vote
1answer
80 views

Derivative of a plot [on hold]

I plotted a graph numerically, so I don't have a definition of the plotted function. Now I want to plot the derivative of this graph. Is there any way to do it in Mathematica? I have the following ...
3
votes
1answer
58 views

ParametricPlot3D: The Mesh shows some unexpected wires to the origin. How to remove them?

In the code below a hexagonal shape is defined and plotted. The ParametricPlot3D shows the hexagonal design almost as intended. However, the mesh makes some strange "wires" to x=y=0. This is ...
5
votes
1answer
98 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 ...
2
votes
1answer
63 views

Dynamic overlay of graphics and plot while maintaining uniform coordinates

I have a plot and a graphic that I want to overlay onto one another while retaining a uniform sense of coordinates throughout the whole thing. I have tried to do this two ways and both suffer from ...
1
vote
1answer
17 views
3
votes
1answer
153 views

ArrayPlot copied to PDF shows blurred mesh

Certain (but not all) images displayed in ArrayPlot, and then copied to PDF, show what appear to be fuzzy mesh lines in white areas. An example is shown below. I ...
3
votes
3answers
110 views

Colorize an image using two parameters

I have a matrix of data. I use Colorize[Image[Rescale[data]],ColorFunction->"Rainbow"] to create an image from the data where the value of each pixel is used ...
1
vote
1answer
46 views

Ratio of variables AxesLabel is messed up when plot exported to pdf

On the vertical axis of a Plot whenever I have a ratio of variables in a string as axes label, the exporting of the plot to PDF format messes this ratio up. Minimal working example: ...
0
votes
0answers
81 views

GraphicsGrid output is incorrect - image seems compressed [on hold]

I want to plot a large number of large data files but the output images are incorrect when I'm iterating over a GraphicsGrid with the Export command. ...
3
votes
1answer
153 views

How to draw multi curves in a graph with errorbars

The curves are composed by several 2*n nested lists. I want these curves be placed in a 3d way, like the xy plane is for the data, different curves are located in several parallel xy planes with ...
6
votes
2answers
172 views

Mathematica 10 ListPointPlot3D PlotTheme bug?

I am using Mathematica 10 to generate a 3D point plot of a crystal lattice structure. I wanted to set the PlotTheme to ...
0
votes
0answers
49 views
0
votes
0answers
33 views

plot both parts of a two-sheeted hyperboloid [closed]

Is it possible to plot both parts of a two-sheeted hyperboloid in one input with the following parametrization, meaning that the z-component would be plus minus ...
1
vote
2answers
74 views

Incorporating the minimum and maximum of the function in a Dynamic plot

I'm working on my project for class and it's supposed to be a graph that can take functions from the user and display it along with finding the max and min of the graph. But I just don't know how to ...
0
votes
0answers
34 views

Plotting the real positive solution to a parametric equation [duplicate]

I have the following parametric equation $$ x^2-a=0 $$ where $a$ is a given parameter. I would like to plot the nonnegative real root ($\sqrt{a}$) using NSolve as $a$ varies from $0$ to $1$. Can ...
0
votes
0answers
22 views

Plotting the vector field of a function [closed]

$f(x, y) = x^2y - y^3$ In := Grad[{x^2*y - y^3}, {x, y}] Out := 2 x y, x^2 - 3 y^2 In := VectorPlot[{2* x* y, x^2 - 3 *y^2}, {x, -3, 3}, {y, -3, 3}] Do I ...
0
votes
0answers
30 views

Reverse x and y in pairs data set [closed]

I have a list of data {{x,y}}={{2,4},{5,6},{2,1},{7,4},{3,4},{4,6}}.Mathematica automatically plots x in horizontal axis and y in vertical axis. I would like to switch axis position such that new ...
2
votes
3answers
85 views

Customizing the order of appearance of legends in PlotLegends

I have a graph with four curves and I want to custom order their appearance in the legend. In particular, in the graph below, ...
0
votes
1answer
62 views

Plot table versus table [duplicate]

I have two tables like: nex1 = Table[l3*10^3/4*10^14, {l3, 1, 30, 1}]; nex2= Table[l4, {l4, 1, 30, 1}]; How can I plot nex1 versus nex2 so that nex1 is x axis ...
0
votes
0answers
55 views

How to plot a ternary plot? [duplicate]

Does anybody know how to plot a ternary plot (equilateral triangle)? Suppose, I have a list of lists like this (triplets): ...
2
votes
2answers
120 views

Bug in ListVectorPlot?

Trying to evaluate the following expression kills my kernel (Mathematica 8.0.0.0): ...
0
votes
0answers
49 views

Plotting Earth's position with units

I'm trying to plot the Earth position with the Sun in the origin. I have two lists like this: ...
5
votes
2answers
160 views

ListContourPlot interpolation fails if x and y axes have different scales

To summarize what is below: ListContourPlot doesn't work when the domain has different x and y scales (fails when x/y~10^4, which seems surprisingly small). Is it possible to call ListContourPlot ...
26
votes
2answers
3k views

Placing a ContourPlot under a Plot3D

I would like to combine a 3-dimensional graph of a function with its 2-dimensional contour-plot underneath it in a professional way. But I have no idea how to start. I have a three of these I would ...
0
votes
0answers
37 views

Plot function failure, and understanding how mathematica selects recursion points for correction

I think it is best to start out by directing everyone to this link. The discussion concerns why the Plot function fails to accurately generate a simple sine wave for given parameters. The answer given ...
2
votes
2answers
142 views

Speed up ContourPlot

I created the following code, but the contours are drawn slowly with the movement of the slider, could you advise me how I should optimize the code? ...
0
votes
2answers
155 views

Help Please : Error in plotting the solutions of FindRoot

I want to find the roots of an equation using FindRoot as a function of a real parameter K and then plot the real and imaginary solutions vs. the parameter K. The function I'm trying to find the ...
19
votes
5answers
2k views

Plotting several functions

I'd like to plot a function of one real and one integer variable, but I don't want them all shown in the same 2-D plot - I'd like to see them as separate curves so I can see both 'axes', more like ...
3
votes
1answer
104 views

Constructing primitive cell using information from ChemicalData

I would like to construct a primitive cell (figure shown) and possibly the two-dimensional layout (figure from http://en.wikipedia.org/wiki/Transition_metal_dichalcogenide_monolayers) using the ...
13
votes
0answers
369 views

Save as pdf broken in version 10.0.2?

It looks like the save as pdf is broken after I update to version 10.0.2. The labels in the plot become a mess. Are there ways to fix it? The Export function works ...
5
votes
0answers
76 views

More Ticks::ticks errors in AbsoluteOptions in v10

Bug introduced in 10.0.0 While the specific bug affecting Plot described in AbsoluteOptions prints error messages in V10 has been fixed in 10.0.2 there remain ...
9
votes
2answers
175 views

Glitch in Filling?

Bug introduced in 8.0 and persisting through 10.0.2 or later I ran into a problem while plotting and I was able to narrow it to this. Before I start "spelunking" I'd like to know if I am ...