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

learn more… | top users | synonyms (8)

2
votes
3answers
83 views

Contour plot of the imaginary portion of a function given the real part is positive

How do I plot the imaginary part of the function while its real part is positive? For example, for the below code I could have the imaginary part but I am not able to find the positive or negative ...
4
votes
3answers
87 views

Change Contour Plot Overlap Ordering

I have a contour plot for which I have selected a finite set of contours. However, the contours overlap in some places and I would like to reverse the order in which they are drawn. In other ...
2
votes
1answer
59 views

Contour plotting multiple curves [closed]

I am wondering why the following does not work: eqns = Table[x + n y == n, {n, 1, 3}] ContourPlot[eqns, {x, -2, 2}, {y, -1, 2}] However, if I copy the output ...
5
votes
4answers
104 views

PlotRange truncates data in the y direction but not in the x. Why?

Here's a very bizarre inconsistency I've just struggled with and I'm wondering why it exists or if I'm missing something. I have some noisy data and I wish to make a framed plot of the data but allow ...
1
vote
2answers
105 views

3D representation of a transcendental equation

Given a transcendental equation $F * exp [x] + x * y + sqrt[F-y] = 0$, is there a way for Mathematica to automatically 3D-plot F[x,y] depending on ...
4
votes
3answers
165 views

Colouring points in a Delaunay Mesh by the number of nearest neighbours

I apologise if this is a repeated question, but I've searched for a while and can't find anything. I'm doing some molecular dynamics simulations using Mathematica V10, and I've placed a ...
4
votes
3answers
219 views

Require assistance with plotting data!

I am new to mathematica and i was wondering if someone could help me to plot some data; This is my data that I need to use: ...
1
vote
1answer
43 views

Finding root when using Apply command

I have normally two equations system which I reduce to one equation and make its graphic. I could make the graph of the reduced equation but I can not find the appropriate command to find its root. ...
2
votes
0answers
75 views

Black lines at the border of graphics [on hold]

For a while I seem to have a problem with default black borders on plots. For instance, ...
0
votes
1answer
62 views

Plotting a function with insight to a special plot

I draw this plot: Plot3D[Sin[x] Cos[y], {x, 0, 4 \[Pi]}, {y, 0, 4 \[Pi]}] the default setting of Mathematica 10. results in the below plot: At the first I ...
1
vote
2answers
70 views

ContourPlot giving all (most) contours the same shading

I am using a ContourPlot command to plot a function and unless I explicitly define the ContourShading I get the same colour used for most intervals. Is there any way to fix this? Here's the function ...
1
vote
2answers
61 views

How to interpolate data and create a Density Plot?

I have data of the form: image := {{0.1,0.5,0.8}, {0.8,0.9,0.001}...} where the entries correspond to the following: ...
3
votes
1answer
91 views

clip a plot to sub-parts then merge

I have a start photo (StartShot) with 0-400, 0-400 coordinates: And this path: ...
1
vote
1answer
94 views

Why do Plot and ParametricPlot handle PlotStyle differently?

I would like to apply a custom PlotStyle (colors and dashing) to a plot of a bunch of expressions, which are in a nested list. I can do this fine when using ...
1
vote
1answer
37 views

Question about using Replace All where x gets replaced with x-h

I'm having a little trouble with replace all. I'm illustrating horizontal and vertical shifting of basic graphs. The vertical shifting work fine, but the horizontal shifting does not work and has ...
0
votes
0answers
30 views

How to fill in missing points on a graph? [duplicate]

If I plot the function Plot[Surd[x, 10], {x, 0, 10}, PlotRange -> {{-3, 3}, {-2, 2}}] I get This issue I have is that graph does not extend down to the ...
3
votes
0answers
99 views

Hopf Bifurcation for a non-linear dynamical system [closed]

I am very new to mathematica and also to Hopf bifurcation or any bifurcation for that matter. But I am trying to obtain a Hopf bifurcation for a dynamical system. Now, so far, I cannot find any ...
0
votes
0answers
30 views

Plotting x^(1/3) [duplicate]

How do I get Mathematica to plot solutions on the left and right side of the y-axis instead of just the right side? Plot[x^(1/3), {x, -10, 10}, PlotRange -> 3] ...
2
votes
2answers
70 views

How to plot a region of intregration of a bidimensional function?

I need to plot the region of the following integration $$ \int^{3}_{1}\int^{4}_{0}(e^{x}+y)dydx $$ How to do this?
1
vote
1answer
39 views

two element ticks in a parametricplot

I'm struggling with parametric plot axes ticks edition. I need them to always have one (or two) digits after the coma but now they are like: 0,6 0,8 1, 1,2 1,4 and I need the to be like: 0,6 0,8 1,0 ...
5
votes
1answer
68 views

Would like to draw something similar to confusionMatrix created by ClassifierMeasurements

How do I show the values in each box? I know how to add the labels. Thank You
10
votes
2answers
278 views

How to “inform” successive ContourPlot calculations?

I need to draw some contour plots of very non-linear functions. As a simple example, take a Mandelbrot Set divergence contour near $z\approx i$. (Just to be clear, I'm not trying to write a ...
0
votes
0answers
30 views

Reduce size of exported contourplot [duplicate]

Following the answer given here, I am plotting contour lines in black/white: ...
2
votes
1answer
131 views

geodesics' on torus

Is it possible to draw geodesics between the points in a path on a torus - toroidal surface? geodesics: generalization of the notion of a "straight line" to "curved spaces" ...
6
votes
1answer
168 views

Trouble with shooting method for a 4th-order differential equation

I'm trying to solve the following forth-order ODE with the shooting method: $$\frac{1}{5}(y-2xy^\prime)=\frac{1}{x}\left\{\frac{xy^\prime}{y}+xy^3 \left[\frac{(xy^\prime)^\prime}{x} \right]^\prime ...
5
votes
2answers
173 views

Plot Command With Clean Grid Lines

I am trying to emulate this plot using Mathematica. Using the following command, I cannot get the grid points correct. ...
5
votes
1answer
62 views

Plotting with units — getting the right axes labels

I have a simple example: Plot[UnitConvert[Quantity[x, "DegreesCelsius"], "DegreesFahrenheit"], {x, -25, 300}, AxesLabel -> Automatic] The x-axis has the ...
3
votes
2answers
40 views

Ticks and range in PairedBarChart

I am trying to change the ticks and range in a PairedBarChartbecause one of the ranges is much smaller than the other. How can I do this? ...
1
vote
2answers
71 views

Problems with formatting PlotLegends text [closed]

To avoid issues, I post here the photo to explain you better what my problem is. So what I would like to have, is a "correct" writings of the legend text for the Blue function. I would like it to ...
0
votes
1answer
33 views

Using copy as I get an error [duplicate]

When I try to copy a plot file as a LaTex file I get the following error, TeXForm of ...
2
votes
6answers
124 views

Color points in list plot based on whether they satisfy an equation

I wanted to create a set of points (a,b) such that a, b are both integers between -6 and 6. Then I want to color all points (a,b) that satisfy $|a-b|\ge2$ red, and all the remaining points blue. I ...
1
vote
0answers
63 views

Given vector of function plot each of them separately? [on hold]

At the moment, I am trying to plot a vector of functions which consists of the change along $x$, $y$, and $z$. Is it possible in Mathematica to give a vector of functions and plot them separately ...
3
votes
1answer
96 views

How to plot data with domain on a circle?

I've got a list of data of the form {{0,x0},...,{359,x359}}, which represents some experimental results given in polar coordinates with fixed radius. How to plot ...
4
votes
3answers
227 views

Histogram of a very large dataset?

I have a very large dataset stored in a file (over 2GB). The file contains a tab-separated table of floating-point numbers. I want to do an Histogram of all the numbers in the table. But if I try to ...
0
votes
0answers
80 views

solving an equation containing an complex integral

I want to solve a numerical equation which include an integral. The problem parameters are : w (is a complex : w = wr +I wi), ...
0
votes
0answers
99 views

Given $y$, find the $x$ value of a point on a Bezier curve

I have linear equation of Bezier curve with one control point: f[x_] := (1 – t)^2 x0 + 2 (1 – t) t x1 + t^2 x2; f[y_] := (1 – t)^2 y0 + 2 (1 – t) t y1 + t^2 y2; ...
2
votes
2answers
179 views

Converting a 3D Plot to a Region Plot [duplicate]

I have a 3D Plot with 3 separate functions for z in terms of x and y. I would like to ...
0
votes
1answer
148 views

Join points or draw lines between them on a torus [duplicate]

First I would have liked to map points and texture from a square map (box) in agent-based modellers to a torus. ...
10
votes
2answers
238 views

How to automatically have ContourLabels in middle of Contour lines if specific levels are not specified?

I looked at all the questions/answers relating to placement of ContourLabels but could not find an answer to this. Some of the answers before are based on user ...
3
votes
2answers
97 views

Set PlotLabel length

This is a small adjustment I am making to a nice presentation from Welwyn Hollis's CalcLabs, Mathematica, Singe Variable Calculus. ...
1
vote
1answer
113 views

DensityPlot showing artifacts [closed]

This is my first post on Mathematica.SE, and I'm still a bit new to Mathematica. I believe I'm probably doing something silly in my code, but I have not been able to find where. I'm trying to plot a ...
-1
votes
1answer
64 views

Parametric solving a nonlinear equation and plotting answer

I want to get x and y as a function of z in below nonlinear equations and plot ...
0
votes
0answers
76 views

How to map a 2D figure into the 3D plane?

I have several 2D figures, and now I want to map them into the 3D space plane, the picture below shows my idea. The figure above was made by maping texture of the 2D plot on the 3D plane and the ...
2
votes
1answer
255 views

Map points on a square onto a Torus

I would like to create a 3D torus plot from a 2D graphic. This 2D original plot is a bit complex, and I haven't a clue how could transform it to a torus. The below code, from this article posted on ...
2
votes
2answers
111 views

Plotting a function defined to be infinite over a sub-domain [duplicate]

I'm trying to plot the following function with the constraints shown, $$f(x)=\begin{cases} \infty \quad x<0 \\ A\,x\quad x\ge 0 \end{cases}$$ However I can't work out how to show this in ...
6
votes
2answers
95 views

Inset in ArrayPlot

It seems the options in the Inset object will be ignored when passing to ArrayPlot: ...
0
votes
0answers
42 views

Problem displaying “/” correctly in exported svg file of Plot in Mathematica 8

In a plot, I use "/" on the axes labels to denote units. E.g. "t/s" meaning time in seconds. I believe this is pretty standard in Physics. ...
1
vote
1answer
51 views

How to adjust vector scaling with a specific aspect ratio

I'm trying to create a vector plot with uniform vector scaling. I need the x and y ranges to be very different, because I need to highlight the angle between the vectors and the y=0 axis. This means ...
3
votes
1answer
90 views

Skipping certain items in PlotLegend

I've the following code: ...
8
votes
3answers
345 views

Overlay vs Show for plots?

I am trying to understand the differences of Overlay and Show to combine two plots. A typical use case is to superpose a ...