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

learn more… | top users | synonyms (5)

1
vote
1answer
81 views
13
votes
1answer
413 views

Mathematica: 3D plot based on combined 2D graphs

I have several sigmoidal fits to 3 different datasets, with mean fit predictions plus the 95% confidence limits (not symmetrical around the mean) and the actual data. I would now like to show these ...
3
votes
3answers
121 views

Plot closed surface with ListPlot3D

I have some points in 3D space that I want to plot as a closed surface. My data is at the bottom of this post. I tried with ListPlot3D but I got something I don't ...
5
votes
3answers
913 views

Plotting a 2D shape along a 3D parametric function curve

Say I have a 3D curve that is parametrically defined. How would I be able to plot shapes like figure 8s whose centers are aligned along the 3D curve? Say the curve was: ...
1
vote
0answers
61 views

Arrange order of evaluations (please help these unit vectors)

I need help to control order of evaluations. Here I try to use Manipulate to control n unit vectors. Their positions are initially random but head left. The 2 operations are 1) translation: moving ...
0
votes
3answers
71 views

Plotting complex function

(9 Tanh[x]^8 (1 - 2 Tanh[x]^2)^2 (1 - Tanh[x]^2))/(1 + 3 I Sqrt[2/13])^2 How can I plot the function with the range of x {-10,10}?
4
votes
3answers
586 views

Computing Gaussian curvature

Can Gaussian curvature $K$ be computed from WolframAlpha or any other available Mathematica program? Please indicate the program or its reference. If input ...
1
vote
1answer
59 views
3
votes
1answer
91 views

FindShortestTour 3D data

I would like to plot a line in 3D with the following set of (x,y,z) data points: ...
0
votes
0answers
31 views

Narrow a Drawing Tools Window

I used the Graphics->New Graphic, then the Drawing Tools to create this in my notebook. Now, you can see that there is wasted whitespace above and below my line. I tried dragging all the sides and ...
6
votes
1answer
62 views

How to plot the zero set of certain functions?

I'm working with functions that look like $$P(z,w)=\sum_{|i|+|j|\leq n}c_{ij}\cdot z^i w^j.$$ Where the exponents $i,j\in\mathbb{Z}$ and $c_{ij}\in\mathbb{R}$. I'm interested in plotting the image of ...
1
vote
0answers
47 views

Learning mathematica, ListPlot [closed]

I am trying to teach my self Mathematica. I am working with the following example: ...
4
votes
1answer
98 views

How to automatically align multiple legends in Show [duplicate]

I am looking for a way to align two multiple legends while I can control the position of one of the legend myself. Consider the following code. ...
13
votes
4answers
14k views

How can I plot the direction field for a differential equation?

I'd like to plot the graph of the direction field for a differential equation, to get a feel for it. I'm a novice, right now, when it comes to plotting in Mathematica, so I'm hoping that someone can ...
15
votes
4answers
623 views

How: 2D scatterplots with quantitative density-dependent coloring

Consider the following scatterplot of a 50K-point dataset: ...
0
votes
0answers
65 views

Does ListPlot have a bug when plotting large lists?

I was able to plot the first 13315 points of my data, but as soon as I try to plot one more data point, it no longer works. If you load the data contained in the google doc file 19857 pairs of data, ...
8
votes
2answers
510 views

Weird plot with SphericalPlot3D

Taking the equation $x^2-y^2-z^2=1$ and using ContourPlot3D: ContourPlot3D[ x^2 - y^2 - z^2 == 1, {x, -3, 3}, {y, -3, 3}, {z, -3, 3}] Yields the proper image. ...
0
votes
1answer
89 views
1
vote
1answer
92 views

Plotting a best fit line for listloglogplot data

After playing around with calculating the Overlapping Allan Deviation for my research project (and with much help from this community), I have finally resolved a correct listloglogplot for simulated ...
1
vote
0answers
72 views

Bessel functions and ListContourPlot [closed]

I'm trying to plot some eigenfunctions (for a semicircle) in Mathematica. Functions are of the following form: $$g_{ms}=J_{2m+1}(y_{ms}x) \sin ((2m+1)\varphi)$$ For example, for $m=0$ and $s=1$ it ...
1
vote
2answers
102 views

Plot contour integral plots

I am $\TeX$ writing notes on complex analysis, I need to use figures of contour paths to integrate on them, how can I plot them on mathematica, something like this adding also the $\gamma_R$ ...
0
votes
1answer
86 views

How to make a cumulative time plot?

So I'm working with this data set where there is just one input(a date and time) per line in a .csv file. I've let Mathematica understand the input using "DateStringFormat". The time looks like ...
0
votes
0answers
32 views

Plot / Contourplot When are variables assigned? [duplicate]

I asked a question recently that made me clear, that I don't understand how Plot / Contourplot works. If I have something like ContourPlot[f, {a,-10,10},{-10,10}] where ...
0
votes
0answers
79 views

Solve Implicit Equations with Parametric Constraint

I have a set of parameterized equations that I want to solve and plot, while constraining them by an additional parameter. Specifically, I have two functions, ...
4
votes
1answer
251 views

Package for nonlinear plot coordinates

Is there a package for plotting in nonlinear coordinates? I mean that I provide coordinate transformation functions {xi(x,y), eta(x,y)}, for example ...
1
vote
1answer
47 views

2D plot using Manipulate command [closed]

Can anyone tell me what the problem is with the following code: y[x_ a_] := Sin[x (1 + a x)] Manipulate[Plot[y[x a], {x, 0, 6}], {a, 0, 2}] However, the ...
0
votes
1answer
84 views

Plotting level curves for 2-variable exponential equation (Lotka-Volterra) - how?

I have $$\frac{e^{(d x + b y)}}{x^c y^a}$$ Incidentally, this is the energy integral for Lotka-Volterra as given by my lecturer's notes. I would like to draw the level curves for this equation for ...
0
votes
1answer
51 views

Why empty plot (Dsolve solution)?

When I try to plot the DSolve output, I get empty plot. Here is the code ...
1
vote
1answer
47 views

Adding Disk to Parametric Plot Animation

I have a simple animation of a spacecraft being gravitationally deflected by Mars and wanted to be able to represent Mars as a red disk, but am having trouble doing this. Here is the code (where the ...
1
vote
1answer
100 views

Changing the width of BarLegend with Contour argument

Bug exists in 10.0.2 Is it possible to change the aspect ratio of the BarLegend in Mathematica? The option LegendMarkerSize, ...
1
vote
1answer
79 views

Using colorData and BarLegend in ListPlot

I read lot of questions about this issue, mainly: the stack code So,I tried create a list plot with bar legend , using the following code: ...
2
votes
2answers
534 views
0
votes
0answers
35 views

Force the Automatic BarLegend in a ContourPlot to show from -0.65 to 0

I am using ContourPlot to display a function. I have forced the ColorFunction to map between -0.65 to 0 however the automatic BarLegend is still scaled dynamically and I also want to force the ...
5
votes
2answers
180 views

Scatter plot from two lists with BarLegend

I have two lists listx = {}; Do[x = RandomReal[{0, 1}]; AppendTo[listx, x], {1000}]; listy = {}; Do[y = RandomReal[{0, 10}]; AppendTo[listy, y], {1000}]; I can ...
1
vote
1answer
49 views

Multiple styles in ExclusionsStyle [closed]

In my plot I have used an exclusion at the asymptote like this: Exclusions -> {x == -1}, ExclusionsStyle -> Dashing[Medium] The question is, how can I ...
0
votes
0answers
121 views

Speeding up ContourPlot?

I have a quite complicated function for ContourPlot and this takes long to plot. But if I insert a special value for the parameters I get the value of the function quite fast. So why does ContourPlot ...
7
votes
3answers
408 views

How to transpose x and y axes on a LogPlot?

Consider the following simple LogPlot: LogPlot[Exp[x],{x,0,5}] Is there a nice way to switch the axes of a LogPlot? I'm aware that plotting the inverse ...
2
votes
0answers
108 views

puzzled with ColorData

At first let me thank, from this point as well, those that they replied to my previous queries. From a reply I got, I obtained finally the desired graph. ...
6
votes
1answer
328 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 here) using the following input. Any clues as to how this can be done? ...
2
votes
1answer
88 views

Numerically integrate and plot $f(x;p)$ for a range of the parameter $p$

Suppose we have an integral of the form $$I = \int_a^b dx \, \sin(px), \tag{1}$$ where I've take $f(x;p) = \sin (px)$ to be specific. I want to plot this integral for a range of values of the ...
0
votes
0answers
28 views

Does a very large prefactor affect NIntegration time when plotting the result?

I'm using ListPlot[ NIntegrate[f[x,#],{x,a,b}]&/@Range[10,100] ] to plot the integral of the two variable function f as a ...
5
votes
5answers
304 views

Plot all curves in a table with a single color

I want all of my solutions in a table to be the same color. My attempt: ...
9
votes
4answers
637 views

Color change of area under a curve

I am trying to set a graph to show the value of the equity of an investment based on whether the portfolio is invested or in cash. I tried using the ColorFunction, ...
1
vote
0answers
41 views

BarLegend can't make spaced contours when contours number>11

According to Document of BarLegend,BarLegend will select equally spaced contours: BarLegend[cf,contours] generates a legend that identifies color ranges from the color function cf based on the ...
2
votes
1answer
322 views

Putting N cubes on a circle

I'm trying to put $N$ cubes on a circle equidistantly. So in the case of 4 cubes, I'd for example like to put the lower left corner of the first cube at $\pi/4$, the lower right of the second cube at ...