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

learn more… | top users | synonyms (4)

8
votes
0answers
177 views

Break[] inside ColorFunction

f[x_?NumericQ]:= (Do[Break[],{i,1,2}];x) Plot[x,{x,0,1},ColorFunction->(ColorData["Rainbow"][f[#]]&)] Break::nofwd: No enclosing For, While, or Do found ...
6
votes
0answers
168 views

How do I plot a proper streamline plot, including spacings and line endings?

Mathematica includes two nice built-in tools to visualize vector fields, VectorPlot and StreamPlot. The latter is a useful tool, ...
6
votes
0answers
301 views

Incomplete implementation of units?

I've been playing around with the new units capability in MMA9 and I'm becoming a bit frustrated with what I perceive as an incomplete implementation of this capability and I'm wondering if there are ...
5
votes
0answers
434 views

3D visualization of 4D object data

I have some paired data here {{x1,y1},...{x_n,y_n}} (Download link) which represents {frequency, amplitude} of a spatial object surface mesh. Its quite a lot of cells and data as you can see in the ...
4
votes
0answers
165 views

Artifacts in Line Plot from InterpolatingFunction

I have a periodic solution from an NDSolve that is producing an InterpolatingFunction. With the default plot settings, there is not enough PlotPoints/MaxRecursion to resolve the peaks in the function: ...
3
votes
0answers
51 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 ...
3
votes
0answers
109 views

Why do vertex labels disappear when I edit with drawing tools?

I'm trying to change the text and arrow style in GraphPlot using the drawing tool, but the the vertex labels disappear when I do that: ...
3
votes
0answers
296 views

A is fast, B is fast, but together they're Mathematica-crashing slow?

I'm trying to do something with finding solutions to a quantum mechanics problem with n wells. If there are 40 wells, I need to find the solution to an equation in the form: ...
3
votes
0answers
215 views

Scale plot display area (within the frame)

I have 2 data sets of equal length. I've done a LinearModelFit of them which gives me: ...
2
votes
0answers
45 views

Setting OperatorSubstitution to false causes Plot's labels of sufficiently small size not to appear in the specified typeface. Is this a bug?

If I set OperatorSubstitution to False, the labels of Plot will not use the typeface ...
2
votes
0answers
333 views

Interpolate throughout a 3d data list without extrapolation

I have a 3D list of data for which I'd like to plot an interpolated surface. There are several ways to achieve this, but none I cannot find a method which ONLY plots the ENTIRE interpolated surface ...
2
votes
0answers
178 views

Plotting equipotentials gone wrong

I'm plotting the equipotential of the potential function: $$\phi(x,y,z):=\frac{1+x^{2}+y^{2}+z^{2}}{[\left(1+x^{2}+y^{2}+z^{2}\right)^{2}-4z^{2}]^{1/2}}$$ Mathematica code: ...
2
votes
0answers
182 views

why version 9 is much slower than version 8 in producing these graphics

Consider this example(taken from Thomas's question here) ...
2
votes
0answers
123 views

Exporting plots

I want to export a plot which includes curve fitted to a multiple data set. shortly ( I use autolegend function Here ) ...
2
votes
0answers
144 views

Is there a relatively easy way to add the “Cone of Influence” to a waveletscalogram?

I am analyzing time series data using the ContinousWaveletTransform function and plotting the results with WaveletScalogram. I ...
2
votes
0answers
118 views
1
vote
0answers
26 views

Why does Network`GraphPlot`wrapper appear in my GraphPlot?

I'm making a GraphPlot of data similar to this: ...
1
vote
0answers
59 views

Gray background in export pdf

I am trying to output a simple plot with a legend and the output keeps coming out with a gray background. A simple example is the following: ...
1
vote
0answers
69 views

Fluid mechanics problem concerning flow over a wedge

Below is the code I am using to generate a velocity profile and temperature profile for flow over a wedge. ...
1
vote
0answers
49 views

Finding undetermined coefficients with boundary conditions

I have 2 equations which are; To[x_] := c1 E^(-a1 x)/2 + c2 E^(a1 x)/2 + a2 Tu[x_] := c3 E^(-a3 x)/2 + c4 E^(a3 x)/2 Tu equals almost zero ...
1
vote
0answers
66 views

Parallel numerically integrated function can't be plotted

I've been working on a problem where I need to integrate a function numerically. The function is quite complex and it takes almost an hour for Mathematica to make a plot. To speed the process up I ...
1
vote
0answers
61 views

BubbleChart bubble scale depends on y position

I noticed that the scaling of bubbles in the BubbleChart function depends on the y position of a bubble. Compare these two examples. ...
1
vote
0answers
71 views

ListDensityPlot: How to only retain regions with data without using interpolation?

I'm working with ListDensityPlot on a set of triples, $\{\{x_1, y_1, z_1\}, \dots\}$. The data is on a semi-regular grid and looks just as it should through most of ...
1
vote
0answers
202 views

Differential equations: How do I solve a delay differential equation with 0-1 variables

How do I solve the following non-linear, delay-differential equations using Mathematica under the assumptions $$p(t) = 1 ,\; y(t) > k$$ $$p(t) = 0,\; y(t)<= \ k$$. $$ \frac{dw}{dt} = ...
1
vote
0answers
115 views

Plotting basin boundary

How to plot the basin boundary in Mathematica? I have been trying to do this using the system ...
1
vote
0answers
94 views

Why is CountryData function failing?

I am unable to get the CountryData function to work. I have tried FinancialData, CityData, ...
1
vote
0answers
79 views

Speeding up 2D histogram plotting (perhaps via ListDensityPlot)?

What would be the fastest way to take an array containing about $n=10^6$ to $10^7$ elements and plot a two-dimensional histogram with A x B bins? ListDensityPlot is taking upwards of half-an-hour. ...
1
vote
0answers
86 views

problem with exporting transparent object to pdf in version 9

Here is the code: Export["~/Downloads/1234.pdf", Graphics3D[{Lighter[Black], Opacity[0.5], Polygon@Table[{Cos[x], Sin[x], 0}, {x, 0, 2 \[Pi], 0.01}]}]] in ...
1
vote
0answers
140 views

How can I convert a plot to pdf or eps without errors?

Mathematica 9.0.1, Linux. I try to save a plot as a pdf. I tried four different options. In each case some errors appeared as blank space ( http://yadi.sk/d/h1koyDci4z3rc ). I also tried to save ...
1
vote
0answers
73 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 ...
1
vote
0answers
442 views

Calculating the mean curvature of a surface - suggestions

I am attempting to calculate the mean curvature [1, 2] of a surface defined by a function of x and y. My function is rather ...
0
votes
0answers
37 views

A problem with functions and Infinite expression 1/0 encountering

Following code (function) makes integrals and then replace f[x] with Cos functions and calculate the definite parametric ...
0
votes
0answers
89 views
0
votes
0answers
98 views

Another 3D plot question- good and ugly but no bad-

I have the following code with the intention to have a 3D plot: ...
0
votes
0answers
88 views

Intersection of any triangle with a circle in Cartesian coordinates

I started a notebook dealing with metrics in a triangle and its intersection points by a circle. Up to know I reached the point of having plotted a triangle, a circle with an arbitrary centre and I ...
0
votes
0answers
54 views

Mathematica exit when calling plot. Bug?

I'm currently studing the behaviour of some integral for which I cant find an analytic solution. As this function depend on a vector on the unit sphere, I first defined it with 3 parameters before ...
0
votes
0answers
51 views

An error message with NIntegrate and inability to plot the integrand

I took a function of x which depended on parameters on m,n,a,y and then first summed up the n from -Infinity to Infinity and then I set the other parameters to some random values and then I asked it ...
0
votes
0answers
69 views

My plot is cut off if a frametick is “0” but resized if a frametick is “0.” Why?

I have been trying to customize the frame ticks and frame label around a certain contour plot and am running into very strange behavior where the graphics will get cut off by ...
0
votes
0answers
37 views

How can I compute and graph a recursive 3D parametric equation after each iteration?

Basically, I have a function defined by $A(x,y,t+1)=A(x-1,y,t)+A(x,y-1,t)+A(x+1,y,t)+A(x,y+1,t)-A(x,y,t)$, with initial condition $A(x,y,0) = \cos(i)^2, x = \cos(i), y = \sin(i)$. I can graph the ...
0
votes
0answers
38 views

Converting a BSplinecurve to function

I am having two set of data. This is d000 and d001. The set d001 is a subset of d000. I am fitting the d000 data by using the BSpline of the d001 data according to the following commands: ...
0
votes
0answers
82 views

How to make list density plot in polar coordinates?

I have a matrix like this {{r1,a1,f1},{r2,a2,f2}...{rn,an,fn}} where r,a and f are the radius, angle and the function value at this given r and a. I want to make a density plot, but it seems that I ...
0
votes
0answers
109 views

How to plot an implicit equation with separate dispersion lines of Lamb waves

I'd like to plot (to try reproduce) dispersion curves of Lamb waves as in http://en.wikipedia.org/wiki/Lamb_waves But I can't to separate each lines. I was reduce the dispersion equations as X=ωd/Vs, ...
0
votes
0answers
61 views

How to increase range in Plot without exceeding maximum bounds?

Does there exist some way to increase the plot range of following plot from 10^7 to new value 10^16? It exceeds its maximum ...
0
votes
0answers
68 views

GraphicsGrid confusion

When I make a GraphicsGrid the numbers on the axes stay full size, which makes things very ugly. How do I make them smaller? In addition, when I select the ...
0
votes
0answers
109 views

Trace of intersecting planes

I have a set of curved planes that intersect each other. I only want all the parts of all planes displayed that are above the intersecting traces. Further, I would like to highlight the intersecting ...
0
votes
0answers
91 views

Plotting a function by converting it to a delayed differential equation

I am having a little trouble calculating the Dickman Function from scratch. I have downloaded the notebook from the above link and the have following code: ...
0
votes
0answers
55 views

I need to draw a direction field and x1 vs t graph for the ode

I have written the following codes and i am able to get to the trajectory but not able to draw the direction field and x1 or x2 vs time plots. ...
0
votes
0answers
82 views

Using FindFit for step functions

Having used FindFit like so: ...
0
votes
0answers
63 views

Custom Errorbar-Function

I wanted to have a better control on the ErrorListPlot, so I defined a custom ErrorBarFunction: ...
0
votes
0answers
51 views

Logarithmic scale in BarChart3D

I want to display my data in a logarithmic way in a 3d diagram. I found BarChart3D, which seems to be nearly what i need. I tried: ...