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

learn more… | top users | synonyms (11)

1
vote
3answers
211 views

Only show part of a cube below an intersecting plane

I plot a cube and a plane. I just want to show the part below the plane. The code: ...
0
votes
1answer
34 views

Why this function can't be plot

Situation I have define a function in Mathematica like this: phi[t_] := Subscript[\[Phi], m] Cos[(2 \[Pi])/T t] Then I specify some parameters in this function ...
1
vote
1answer
51 views

How do i plot a conical spiral on top of a cone?

So i need plot a spiral from the top of a cone, can someone help me with my code i have made a similar thing for a cylinder, but there radius wasnt change and in this case i cant figure out how to ...
5
votes
2answers
378 views

How can I create an interactive ColorFunction using Manipulate?

I am trying to specify my own colors and scaling for the ColorFunction in ListDensityPlot. I have several lists of 2D values ...
9
votes
1answer
209 views

Vastly incorrect answers obtained by increasing WorkingPrecision with modified Bessel functions

Bug introduced in 7.0 or earlier and persisting through 10.4.1 This is a follow-up to this question regarding numerical instabilities occurring with modified Bessel functions. In trying to explore ...
2
votes
2answers
64 views

BarLegend problem when rescaling color of multiple vectorplot

I want to make multiple vector plot at same color scale with same BarLegend. Similar posts are (1), (2) I made a minimal example to show the problem I encountered ...
6
votes
2answers
645 views

Plotting spherical surfaces

I am trying to make surface plots of squashed spheres. The spheres are defined by a list of points. For simplicity, consider the round sphere: ...
0
votes
1answer
35 views

Manipulation of imported Datafile

Since I am solving a differential equation in a for loop with NDSolve ...
2
votes
2answers
35 views
2
votes
2answers
136 views

Best way to include a “singularity” in a SmoothHistogram?

I have a dataset like this: data = {0,0,1.1,1.3,0,0,3.4,0,0,2.3,0,0 .....} You can imagine that data is generated from a ...
0
votes
1answer
51 views

Missing curves in a plot [on hold]

I am trying to plot multiple curves for a particular parameter in a function S1, where the only variable is t and the rest are ...
7
votes
3answers
398 views

Plot independent 2D graphs on walls of 3D Plot

Sorry, I know a lot of similar questions have been asked before, but I just can't find one that exactly describes my problem. How can I make the according 2D (marginal distribution) graphs appear on ...
4
votes
1answer
114 views

What is wrong with my code so it neither produces a correct plot nor an error message?

I am trying to define some initial functions and then using them to define my secondary functions and then plot the secondary functions. I am supposed to get two curves with a finite width ...
0
votes
1answer
68 views

Mapping over function's several parameters regions

About this post: Mapping multiple parameters of a function to specific values I wonder if the parameters a and b have ranges ...
0
votes
2answers
63 views

DensityPlot with logarithmic xy-axes and logarithmic color scale

I would like to do a DensityPlot with logarithmic xy-axes and logarithmic color scale for the function \begin{align} S(\epsilon_{v},\epsilon_{\phi}) = \frac{\pi}{\epsilon_{v}} \frac{\sinh ...
11
votes
2answers
192 views

How can I make a density plot (or contour plot) with an arbitrary nonlinear scale (e.g. arcsinh, log, biexponential)?

I was inspired by this question, which showed how we can apply logarithmic scaling to a density plot. But I'm not always a fan of a logarithmic scale - it tends to overemphasize smaller features. ...
5
votes
0answers
58 views

Cannot reproduce VectorDensityPlot solution from question 37459

Bug introduced in 10.0 or earlier and persisting through 10.4.1 or later (Reported to Wolfram Technical Support on 24 May 16) Using Mathematica 10.4.1 for Microsoft Windows (64-bit) (April 11, ...
4
votes
1answer
66 views

3DPlot Rendering Artefacts (z-fighting)

I am trying to render a matrix as a depth map: ...
-4
votes
0answers
57 views

How to solve and draw the phase portrait of a linear system [on hold]

How to solve and draw the phase portrait of this linear system $\frac{dx}{dt}=Ax$ where $A=\begin{bmatrix}{0}&{2}&{0}\\{-2}&{0}&{0}\\{2}&{0}&{0}\end{bmatrix}$
4
votes
3answers
1k views

Define a color function based on color samples obtained from ColorBrewer

I am quite new to Mathematica and I am searching for a way to create a smooth colormap based on the samples given by ColorBrewer. Is it possible to create a interpolated function from those sample ...
19
votes
4answers
631 views

LogPlot axes labels destroyed when working in high precision

Bug introduced in 7.0 or earlier and persisting through 10.4.1 (I'm using Mathematica 8.) I have a Taylor series: poly = Normal[Series[E^x, {x, 0, 10}]] I ...
1
vote
1answer
38 views

REAL Roots of a 2 variable Polynomial

I am looking to plot the real zeros of polynomials of two variables in Mathematica, but I have encountered an issue. To accomplish this task I have been using ContourPlot to plot the polynonial ...
2
votes
3answers
359 views

Animated point following a sinusoidal path on sphere

Could someone help me with animating a point following a $\sin$-like path on the sphere? It should be something like this: This green point should walking on a sine (this red line) around sphere.
3
votes
1answer
116 views

Plotting a table with many y values

I'm trying to plot a bifurcation map for a Lorenz System. I have a function (called estables in the code that follows) which, for a certain value r, returns the ...
1
vote
1answer
35 views

Color in Spherical3DPlot according to value

I want to colour a 3D plot according to it's value. I could only mange in one direction (say in 'z' direction) but I want to show them in all direction together. I have written the following code: ...
15
votes
2answers
726 views

Plot 3D model of DNA in Mathematica

My friend asked me if we can plot a 3D model of DNA (deoxyribonucleic acid) in Mathematica. However, I am not really familiar with this and I don't know if Mathematica can do this. Could you answer ...
3
votes
2answers
440 views

ColorFunction based on data

I have a list of numbers, and I would like to plot them using ArrayPlot (which is easy, usually :)). I would like to be able to color the elements of the plot based on the average of the list: one ...
6
votes
2answers
1k views

Plot3D with coloring based on phase value of f

I'm reading a sample chapter of Visual Complex Functions by E. Wegert. Near the bottom of this page, there is a link "Download Sample pages 1 (pdf, 2.4 MB)" which allows you to read Chapter 2 of the ...
33
votes
8answers
7k views

About multi-root search in Mathematica for transcendental equations

I have some questions for multiroot search for transcendental equations. Is there any clever solution to find all the roots for a transcendental equation in a specific range? Perhaps ...
0
votes
1answer
46 views

ColorFunction causing division by zero error (going outside domain?)

On the following plot example, I get a division by zero error (10.4.1): ...
1
vote
1answer
54 views

How to label individual points in data set with use of SciDraw?

I'm trying to lable each point in data set and adjust corresponding TickLabels. Here is my code: ...
4
votes
1answer
34 views

Customize FillingStyle in LIstPlot3D

I'm trying to plot inundation at different elevations on a 3D ground surface elevation plot. The closest I have got so far has been to use FillingStyle as the ...
5
votes
1answer
131 views

Transcritical Bifurcation phase portraits

An example equation for a Transcritical Bifurcations is given by: $$\dfrac{dx}{dt} = f(x, r) = r x - x^2$$ In Mathematica, we can define the function as: ...
14
votes
2answers
562 views

Pulsed NMR animation

I'm new here and have never interacted with the community so excuse me if this has been asked before or if I format incorrectly or anything like that. Anyway, I'm trying to make an animation for a ...
3
votes
3answers
192 views

How to get exact coordinate of a point from a plot?

I am using BodePlot[] to plot the magnitude and phase of a function as below. BodePlot[1000/((1 + s/10^3)*(1 + s/10^6))] ...
2
votes
3answers
145 views

Plots without axes labeling [duplicate]

I need to plot in Mathematica without labeling. For example, this code: ...
2
votes
1answer
112 views

Plot with two LabelStyle

I need to plot a graph using two different colors for the axis labels. Not working example: ...
10
votes
2answers
725 views

Why is Mathematica destroying this graph?

Here I have a picture of a function I graphed: reg[x_,y_]:=(x^2+y^2)Cos[4ArcTan[y/x]]; Plot3D[reg[x,y],{x,-2,2},{y,-2,2},AxesLabel->Automatic] And here is ...
0
votes
1answer
74 views

Get wrong coordinate in plot [on hold]

I am having problem with getting the coordinate of points on the plot below. The plot is OK but when I press Ctr + D and move cursor along the line, the coordinates are total wrong? Could you help ...
2
votes
1answer
118 views

Fractal plotting for the Collatz fractal

I have the following equation: f[z_] := 1/4 (2 + 7 z - (2 + 5 z) Cos[Pi*z]) I want to map this on the imaginary plane such that if it converges under iterations ...
5
votes
2answers
235 views

ParametricPlot3D of Boy's surface

I'm trying to visualize Boy's surface using Bryant's parametrization, as per the MathWorld article. However, I'm not sure I understand the parametrization, and I don't know how to implement it when ...
2
votes
1answer
357 views

How to export figures with normal spacing in texts?

My OS is Ubuntu 14.04, and I use MMA 10. I export a figure ploted in MMA to a pdf file and then import the pdf in Latex, here is the sreenshot As you can see, the spacing in the text is odd. But ...
1
vote
2answers
61 views

Plotting the InterpolatingFunction from NDSolve [on hold]

I want to plot the solution of a differential equation which i solve it numerically with NDSolve. Here's the code: ...
2
votes
1answer
54 views

How to plot a function whose constant parameters have associated uncertainties in Mathematica 8.0?

Let's assume I want to plot the function $f(x)=a + bx+ cx^{2}$, where experimentally known values of parameters $a, b$ and, $c$ are as follows: $a=1.01 \pm 0.18$ $b=0.92 \pm 0.11$ $c=2.2 \pm 0.2$ ...
0
votes
0answers
29 views

How to use ListLinePlot to draw graph of a function vs another function obtained from NDSolve? [on hold]

Using NDSolve I have found solution of two function $\phi(z)$ and $f(z)$. then I use ListLinePlot to find a plot of ...
2
votes
1answer
73 views

How can I code markers for different groups' values over a period of time?

I have a 3-column dataset where I show the probabilities of winning of teams in different years (team name, year, prob.) I need to plot it with markers so the probabilities of each team can be ...
2
votes
3answers
206 views

Enneper's minimal surface

How to plot the Enneper's minimal surface like this I tried: ...
6
votes
2answers
133 views

Voronoi diagram using RegionPlot, using the hyperbolic metric

I want to compute the Voronoi diagram on the unit disk, using the hyperbolic metric. So, I want to input a list of points and obtain a plot of the cells associated with each of the points. I defined ...
3
votes
1answer
673 views

Plotting velocity vectors for pressure driven pipe flow

So I find the velocity profile for Pressure driven pipe flow and it looks like: $$u = \frac{h^2}{2 \mu} \frac{\mathrm{d}P}{\mathrm{d}x}\left[1 - \left(\frac{y}{h}\right)^2\right]$$ Here, a fluid ...