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

learn more… | top users | synonyms (12)

3
votes
1answer
109 views

Plot Shown Differently in Mathematica 9 and 10.3 [duplicate]

I try the following code to put it as a second axis in a 2-y plot as overlay but it behaves differently in Mathematica 9.0.1 and 10.3 (Numbered labels are missing in MA 10.3) ...
5
votes
4answers
122 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
votes
1answer
98 views

Solution of differential equation using other differential equation [closed]

I have a differential equation $y'(t)+2a\sqrt{e+y(t)+1}=h-2a$ where $e,h$ and $a$ are constants with the terminal condition $y(T)=0$; $T$ may be 10 or 12... etc. And $x'(t)+(a/\sqrt{e+y(t)+1}) x(t)=-...
2
votes
1answer
65 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 ...
1
vote
2answers
116 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
239 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
2answers
91 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
1answer
47 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. ...
3
votes
1answer
97 views

clip a plot to sub-parts then merge

I have a start photo (StartShot) with 0-400, 0-400 coordinates: And this path: ...
2
votes
0answers
83 views

Black lines at the border of graphics [closed]

For a while I seem to have a problem with default black borders on plots. For instance, ...
0
votes
1answer
84 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 don'...
3
votes
0answers
135 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 Q&...
1
vote
2answers
111 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: ...
1
vote
1answer
109 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 ...
2
votes
2answers
78 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?
6
votes
1answer
208 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 \...
1
vote
1answer
46 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 ...
4
votes
2answers
952 views

Mathematica not plotting whole logarithmic function

I am trying to use the following input Plot[Log[E,x+1],{x,-50,50},PlotRange->50] however the output is: How can I adjust it so the line goes down to ...
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 ...
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] ...
5
votes
1answer
86 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
11
votes
2answers
298 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 ...
1
vote
1answer
47 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 1,...
0
votes
1answer
156 views

Plot legends not displaying correctly

I'm having an issue with a notebook I'm running. I'm generating a bunch of plots, but the legends aren't showing up correctly. I generate a bunch of plots every time I run the program so I wrote a ...
2
votes
1answer
360 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 ...
0
votes
0answers
31 views

Reduce size of exported contourplot [duplicate]

Following the answer given here, I am plotting contour lines in black/white: ...
8
votes
3answers
1k views

FrameTicks and Ticks on Axes in Same Plot

I have a plot where I would like ticks shown on both the axes and the frame, with them labeled separately. I have custom labels for the frame and want the horizontal axis labeled with ticks ...
5
votes
2answers
195 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. ...
13
votes
1answer
209 views

Plotting an additional axis with ticks

When preparing non-standard graphs, it is common that one needs an "extra" axis, parallel but displaced from a traditional axis. This might happen in many cases: When you want to plot two curves ...
1
vote
2answers
81 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 ...
5
votes
1answer
88 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
45 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? ...
2
votes
6answers
147 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 ...
0
votes
1answer
39 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 GraphicsBox[<<1>>,AspectRatio->NCache[1/GoldenRatio,0.6180339887498948`],Axes->{True,True},AxesLabel->{...
21
votes
4answers
3k views

Plotting piecewise function with distinct colors in each section

I have a piecewise function that I would like to plot but I was wondering if it is possible that each part of the function that is plotted when its corresponding condition is true be plotted with a ...
1
vote
1answer
123 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 ...
6
votes
1answer
122 views

Plotting piecewise functions with distinct colors - issue found [duplicate]

I've been making use of the following thread: Plotting piecewise function with distinct colors in each section A handy feature I found there goes as follows: ...
5
votes
3answers
376 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 ...
3
votes
1answer
113 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 ...
0
votes
1answer
171 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. ...
3
votes
0answers
93 views

Bug when using Plot3D over an ImplicitRegion?

Evaluating this expression seems to cause Mathematica to beep and quit the kernel: ...
2
votes
2answers
191 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
0answers
91 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), <...
13
votes
5answers
679 views

Plot the plane so different condition has a different color

I have a list of functions defined on the plane, and I want to know which one of those functions is smaller than the other functions at particular points. Currently, what I do is ...
10
votes
2answers
426 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
105 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. ...
10
votes
1answer
250 views

Behavior of TimelinePlot with multiple datasets of associations

Bug introduced in 10.1 and fixed in 10.3 The following TimelinePlot behaves as I would expect: ...
-1
votes
1answer
103 views

Parametric solving a nonlinear equation and plotting answer [closed]

I want to get x and y as a function of z in below nonlinear equations and plot ...
2
votes
2answers
137 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 ...