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

learn more… | top users | synonyms (8)

25
votes
2answers
3k views

How to plot planar graphs as such?

A planar graph is a graph that can be drawn in the plane such that no two edges cross. For example, the graph ...
0
votes
1answer
310 views

How to draw the plot of a function in the complex plane? [duplicate]

I'm new to Mathematica, and I was wondering how to plot $x^n$ in the complex plane. Is there a dedicated function for this purpose?
1
vote
2answers
66 views

Formatting a complex ArrayPlot

I want to produce the following ArrayPlot programmatically: To produce the leftmost grid, I tried this: ...
1
vote
2answers
255 views

Plotting a parametric function containing an integral [closed]

I need to plot this expression $$ \phi(s; H,B)=\left(\int_{0}^{s}\frac{1+B\ \sin2H\ t}{\sqrt{1+B^2+2B\sin2H\ t}} \text{d} t,\ \frac{1}{2H}\sqrt{1+B^2+2B\sin2H\ s}\right)$$ for $H=0.5$, $B=0, 0.5, 1, ...
0
votes
1answer
47 views

Is it possible to plot a piece-wise function from lines? [closed]

The following code can explain my intention, although it does not work (the output is empty and no error message). ...
0
votes
0answers
23 views

Show[cp1,cp2, …] but PlotLabel in cp2 does not show up [duplicate]

I am visualizing the extrema of $f(x,y)=x^3+3y^2$ constrained to the level curve $g(x,y)=xy=-4$, found by using the Lagrange Multiplier Method. ...
6
votes
2answers
180 views

Visualize scalar field $f(x,y,z)$ in three dimension

I am trying to visualize scalar field in three dimension generated from some simulations with tuples $(x, y, z, w)$ where $w=f (x, y, z)$. Here is my first attempt ...
2
votes
1answer
83 views

Adding labels to graphics

Maybe not a very descriptive title, but I wasn't sure how to pin it down. What I have is an array of vectors, a numerical example of which would be ...
3
votes
2answers
510 views

Transparency rendering problems in Mathematica 10 (Mac)

Bug introduced in 10.0.0 and fixed in 10.0.1 For some weird reason, they apparently changed the styling of contours in ContourPlot for 10.0. Here is a comparison of the results for V9 and V10 ...
2
votes
1answer
55 views

3D-Plot of a list of complex numbers and a list of real numbers

I'm a newcomer to Mathematica, and I'm having trouble with the following question. Say we have a list of complex numbers list1 and a list of real numbers ...
7
votes
1answer
97 views

Where is the other half of my fourth degree Bézier curve?

Bug introduced in 10.0.0 and fixed in 10.2 When I enter the following command, half of the fourth-degree spline is missing from the graph (i.e. it doesn't touch the last point). Is this a bug in ...
1
vote
1answer
36 views

Reverse order in evaluated list

I solve the following set of ODE and plot solution of S1 vs k2 (Figure 1). ...
7
votes
3answers
675 views

How do I plot the images of oriented curves under complex transformation?

I'm working on a complex transformation sketch that I'd like to create via mathematica. I'm working with the function $$w=z^2\tag{0},$$ where its real and imaginary parts are $u=x^2-y^2$ and $v=2xy$, ...
7
votes
1answer
147 views

Issue with PieChart3D in Version10. Is it Mac specific?

Bug introduced in 10.0.0 or earlier and persisting through 10.0.0 or later I was testing version 10 to see if the ImagePadding bug described here had been fixed ...
7
votes
3answers
407 views

How can I add labels to the points in my scatterplot?

So I'm creating a scatter plot of a large data array, but need to be able to determine which points are where when I look at the plot, so I'm trying to add labels to them. ...
12
votes
1answer
275 views

AbsoluteOptions prints error messages in V10

Bug introduced in 10.0.0 and fixed in 10.0.2 I am trying to use AbsoluteOptions in V10 but I am getting the Out with some errors as see in this picture: does anyone have same issue?
0
votes
1answer
33 views

How can I plot a function of imported data that ends up nested in lists four deep? [closed]

I imported a file of data from a model that I am running for my research. It produces the following output in Mathematica: ...
6
votes
1answer
165 views

Filling the gap between different range

There are three curves in this figure. I use the followed code to fill the gap: ...
1
vote
1answer
936 views

Solving a complex-valued differential equation with NDSolve

I am trying to solve $dx/dt=\sqrt{1+(ix)^{1.8}}$ for initial condition $x[0] =-0.9877 + i 0.1563$, where $x$ is a complex variable. I would like to plot the imaginary part of the solution versus the ...
1
vote
1answer
67 views

Strange Plot result

When I plot this function ...
2
votes
1answer
84 views

Does DynamicModule cure Problem with Manipulate?

Hopefully, this is a final cure for the Problem with Manipulate introduced on A problem with Manipulate and then continued on Continuation of a Problem with Manipulate. Michael E2 suggested on the ...
18
votes
2answers
263 views

How can I make Plot show the plot while it's computing it?

Normally, Plot acts like a black box and only gives you the requested plot once it has finished computing it. However it can be useful, other than interesting, to ...
11
votes
3answers
211 views

Strange Behavior in Barchart LabelingFunction

Bug introduced in 10.0.0 and fixed in 10.0.1 BarChart formatting algorithm make me loose some time today in V10. Now, ...
6
votes
2answers
196 views

improving sequence dot operator for matrix rows and plot of Norm-imaginary

I have written a code to Dot a row (conjugate of that) of mm to the next one: ...
4
votes
1answer
87 views

ListContourPlot3D drops data

I've generated an array of datapoints depending on three Variables and need to plot them in a comprehensive way. Easier than dividing the data into subplots of fixed variables, ...
0
votes
1answer
204 views

Power series graphs?

I would like to graph this function and its first 6 Taylor polynomials on the same axis, but I'm not sure how to start: f[x_] = Exp[x]; Plot[f[x], {x, 0, 1}]
0
votes
0answers
81 views

Plotting Real and Imaginary parts of Riemann Surfaces

I'm working on a project where I need to take curves like, for example, $y^{2}=(x^{2}-1)(x^{2}-3)$ and plot their real and imaginary parts. More specifically, let $x$ just be real and then plot ...
4
votes
0answers
86 views

Does ContourPlot3D leak assignments inside Manipulate?

Update 5 Aug 2015 -- Karsten 7. found a minimal example of leaking not involving Manipulate, so the role of Manipulate seems ...
0
votes
1answer
68 views

Plot a 3D surface described by equality [closed]

Is there an easy way to plot a 3D surface e.g. z^2 = x^2 + y^2 -1 ? I tried RegionPlot3D but it seems it works only for surfaces ...
5
votes
2answers
192 views

Stacking plots at multiple levels

I have a lot of data points which represents a value at different points in different cross-sections of a container. I can use ListPlot3D or ...
2
votes
0answers
106 views

Evaluating Real and Imaginary parts in a dispersion equation via ContourPlot [closed]

I want to reproduce a dispersion curve from P. Zou's thesis found here: http://www.ipd.anl.gov/anlpubs/2001/06/39620.pdf on Pg. 31, Eq. 2.13. The problem is, the code below only gives values for the ...
0
votes
0answers
21 views

Plotting a dispersion curve with complex wavevectors [duplicate]

I want to reproduce a dispersion curve from P. Zou's thesis found here: http://www.ipd.anl.gov/anlpubs/2001/06/39620.pdf on Pg. 31, Eq. 2.13. The problem is, the code below only gives values for the ...
6
votes
1answer
368 views

Dipolar magnetic field lines inside a cylinder

I'm drawing the magnetic field lines of a rotating dipole (magnetic field distorded by emission of radiation). Currently, my Mathematica 7.0 code is fully working, but I'm having a constraint which I ...
0
votes
3answers
1k views

Plotting multivariable integration

If I have a multivariable integration like NIntegrate[x^2 + y^2, {x, 1, 5}, {y, 6, 10}] But I need to plot its result in terms of ...
8
votes
3answers
241 views

Ticks disappear in Graphics3D with Epilog

Bug introduced in 10.0.0 and fixed in 10.0.2 Normally, you can enable Graphics3D to show tick marks by doing this: ...
3
votes
2answers
3k views

How do I define the domain of a function?

I have a function of two variables, f[x_, y_], and I would like to restrict the domain to values of x and ...
3
votes
2answers
138 views

Even with Evaluate[], Mathematica is plotting everything in the same color

The code evals[x_?NumericQ] := Eigenvalues[{{x^2, 2 x}, {x, 3 x^2}}]; Plot[Evaluate[evals[x]], {x, -1, 1}] gives both eigenvalues in the same color. I thought ...
1
vote
1answer
88 views

Adding a fading color only to 3D curves going outside a cylinder

I'm having a problem with color shades on multi curves drawn with the Mathematica 7.0 code below. All the curves with both their endpoints inside the unit cylinder (green circle on the picture below) ...
3
votes
3answers
111 views

Interpreting Results of Repeated Measures - Shift calculation in plots

What would be a more accurate method to calculate the shift in waveform (waveform drift) from a collection of 20 or more data plots. Current method, Plot all using Show and see if there is some ...
15
votes
1answer
441 views

Why does LogLinearPlot sample its argument outside the specified domain?

Bug introduced in 6.0 and fixed in 9.0.0 I experience a weird bug in the function LogLinearPlot. If the input is an interpolation function, such as the one ...
4
votes
1answer
118 views

Removing the background color from BarChart3D plot

I'm trying to make a 3D bar chart plot with transparent faces on the sides, but for some reason it's very hard to remove them (or to make them transparent at least). I tried looking through the ...
5
votes
1answer
52 views

How to simultaneously extract contourvalues and contourline?

Given a contour plot, plt=ContourPlot[Sin[x y],{x,-1,1},{y,-1,1}] I can extract the values of the contour lines using, ...
1
vote
0answers
76 views

Automatically sizing elements in a DistributionChart with custom ChartElementFunction

This is a follow-up to some related questions: 46770 and 60600. I'd like to make a DistributionChart where the elements are histograms with my own custom ...
0
votes
0answers
215 views

Distance between ticks and axes

I've created a plot using the following code: ...
14
votes
4answers
2k views

All curves in plot have the same style. Cannot be fixed with Evaluate[]

Usually, when I plot multiple curves in Mathematica Plot[{x,x^2,x^3},{x,0,1}] they are given different colors. However, if I try to construct a list inside the ...
59
votes
4answers
5k views

Plot draws list of curves in same color when not using Evaluate

This example comes from the Mathematica documentation for Plot under Basic Examples. Can someone please explain why these are each plotted as a different color in ...
1
vote
2answers
138 views

Styling the edges of a graph according to the multiplicities of the edges

I used the following code to make a simple triangle, in which the nodes have different effects each other: ...