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

learn more… | top users | synonyms (6)

7
votes
2answers
417 views

How to draw a protractor in Mathematica

I would like to draw a protractor with Mathematica. I hope this is a fun question. Here is some start codes I tried: ...
2
votes
2answers
78 views

Switching between solutions of a fourth order polynomial

I am plotting the roots of a fourth-order polynomial as a function of some parameter $r$ with the following code: ...
3
votes
1answer
74 views

Duotone plots with cyan and black

What's the typical way to make Mathematica plots use purely cyan and black? Maybe there's a fairly standard method, since publishers often require this? It also seems like some plot types take ...
0
votes
0answers
54 views

Plotting complex roots of equation involving special functions

I consider an equation of the kind $u(k,\lambda)=0$, where $u$ involves special functions, ParabolicCylinderD, and $k$ and $\lambda$ are real parameter. By implicit ...
2
votes
1answer
57 views

Contours aren't aligned with frame ticks in ContourPlot

Because of the problem described in BarLegend can't make spaced contours when contours number>11, I decided to brew my homemade spaced-contours-barlegend. After some trials I get something like ...
2
votes
1answer
79 views

Legend is too long

I've a problem with the legend of my graph. I've customized the graphs of my papers in an acceptable way for the a lot of journals. But this time I've two problem: Is there a simple way to write the ...
0
votes
0answers
56 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 ...
1
vote
1answer
84 views

Plotting data after fitting it to exponential function [closed]

I am trying to plot h vs t such that h fits a equation ...
3
votes
1answer
133 views

Transforming a region obtained with RegionPlot

I have a region r0, obtained from an interpolated function, with the use of RegionPlot. Let's call this function under the ...
1
vote
0answers
63 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 ...
3
votes
3answers
124 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 ...
0
votes
3answers
78 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}?
0
votes
1answer
57 views
1
vote
1answer
60 views

Van der Waals Isotherms [closed]

I have the following code: ...
10
votes
2answers
141 views
3
votes
1answer
95 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
34 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
63 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
1answer
54 views

Remove overlapping axis labels in orthographic view

I tried: ...
22
votes
2answers
1k views

Trying to Visualize a Collatz - The Collatz conjecture

So I'm new in this and learning--- and I happen to have this collatz collatz[x_, y_] := If[x == 3*y || x == 2*y + 1 || y == 3*x || y == 2*x + 2, 2, 0] So i want ...
13
votes
1answer
428 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 ...
1
vote
0answers
49 views

Learning mathematica, ListPlot [closed]

I am trying to teach my self Mathematica. I am working with the following example: ...
4
votes
1answer
102 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. ...
0
votes
0answers
67 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, ...
1
vote
1answer
100 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 ...
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
50 views
1
vote
0answers
74 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
116 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$ ...
1
vote
1answer
113 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 ...
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
56 views

Why empty plot (Dsolve solution)?

When I try to plot the DSolve output, I get empty plot. Here is the code ...
17
votes
4answers
647 views

How: 2D scatterplots with quantitative density-dependent coloring

Consider the following scatterplot of a 50K-point dataset: ...
0
votes
0answers
36 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 ...
1
vote
1answer
53 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 ...
0
votes
1answer
92 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 ...
8
votes
2answers
526 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. ...
3
votes
1answer
114 views
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 ...
1
vote
1answer
52 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 ...
2
votes
1answer
96 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 ...
1
vote
0answers
45 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
330 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 ...
0
votes
0answers
123 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 ...
11
votes
3answers
475 views

Subtracting two plots from each other after shifting one

I have the following lists representing energy spectra that need to be subtracted from each other to produce a difference spectrum. ...
1
vote
3answers
115 views

Plotting entries of one table vs entries of another with a condition on a third table

I have three Tables, say, A={1,2,3,4,5}, B={1,2,3,4,5}, C={1.1,2.2,17,1.5,5} of the same ...
1
vote
1answer
44 views

Make a column of two plots

I'm trying to plot a pair of functions of the same variable one above the other. A simple example is ...
3
votes
1answer
79 views

Longer ticks without specifying the ticks itself

I know similar questions have been asked here before, but i can't figure out this specific problem. I have a lot of plots that i'd like to bring to a publishable form, but in my current customization ...
2
votes
2answers
117 views

How to plot a quarter disk with specified height?

Kind of important: the solution posted does work, and answers the question in that sense. However, it is very slow, so a faster option would be much appreciated. I'm trying to create the following ...
2
votes
1answer
59 views

Rotating a 3D plot constantly resizes

When I click and drag a 3D plot it rotates and when I release the mouse, the size of the image changes. This is distracting to me, I'd much rather have it look the same when I release the mouse button ...