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

learn more… | top users | synonyms (10)

19
votes
2answers
846 views

Phase portrait on a cylinder

It is very nice and very easy to make a sketch of a phase portrait with StreamPlot. For example, for the classical pendulum, defined by \begin{eqnarray*} \dot ...
2
votes
2answers
284 views

Include more padding between tick marks and plot [duplicate]

How can I modify the code below to add some padding between my tick marks and 3D plot? It is not a problem in this example, but often my tick marks collide with my axes. ...
1
vote
1answer
307 views

Plotting Integral equation

I want to plot the following indefinite integral : $C_l^{CC}=\int k^2\mathrm{d}k\: [e^{-2k^{2}}P_{Cl}^2(k\eta)|\dot{h}(\eta)|^2]$ with k from 0 to some large value (considered to be $\infty$), ...
4
votes
1answer
236 views

Scale coloring of ContourPlot

The answer given here solved how to use the same color scale across multiple plots within the function ListContourPlot. I can't for the life of me map this solution onto the function ContourPlot that ...
0
votes
1answer
208 views

Display trailing zeros in ticks

When I specify tick marks in ArrayPlot I want to keep the number of trailing zero's that I specify. One work around is to use a label for that tick mark (i.e. Ticks->{0.8,0.9,{1.0,"1.0"},1.1,1.2}), ...
2
votes
1answer
65 views

ChartLegends only displays the last two legends in the list

I would like to add 4 legends on a simple bar chart below, but only the last 2 legends appear on the graph. ...
4
votes
1answer
211 views

RegionPlot with PlotRange vs RegionPlot with domain

Consider you want to plot R = ImplicitRegion[x > 0 && y == -((5 x)/3), {x, y}]; In ContourPlot of an ImplicitRegion defined by the intersecton of ...
1
vote
1answer
103 views

Plotting a function in {X(Y),Y} space

The code below generates some data and defines a function f[x,cb]:=NMaximize[expr,x] that upon being evaluated returns: {function value at max $x$,the function maximizing $x$}. ...
0
votes
1answer
109 views

Use separate options for different elements in Show

I have a few plots of different type. plot1 has gridlines and the rest do not. I use the option Method -> {"GridLinesInFront" -> True}] when plotting plot1. When I use Show to combine the plots the ...
5
votes
2answers
680 views

Set the same color scale across multiple ListContourPlots?

This is probably straightforward - but how would I set the same color scale across multiple ListContourPlots? if I have values from 10 to 25 on one ListContourPlot and values from 40 to 100 on ...
2
votes
3answers
198 views

ContourPlot of an ImplicitRegion defined by the intersecton of equality and inequality

I want to plot a line defined IMPLICITLY by the intersection of an equality and an inequality, i.e. a line that you can't easily simplify (and therefore take advantage of its form). Consider for ...
5
votes
3answers
429 views

Aligning the axeslabel in a 3D list plot ($x,y,z$) (edited)?

I have the following code ...
5
votes
4answers
210 views

ArrayPlot with variable width bars

I've been using a DateList plot to visualise property information but I don't think it's the best way display my data. My data is formatted as {time (hours), property} where property is an integer ...
0
votes
1answer
230 views

How to hold axis constant with Animate

So I am trying to use Animate for my 3D Plot, to see how the function changes with respect to time. But for some reason the z axis keeps rescaling such that the function appears to be constant (but ...
5
votes
1answer
334 views

Intersection of many planes

I'm working with a family of planes, given by $2a_1 x_1 +2 a_2 x_2 - x_3 +a_1^2+a_2^2=0$. I would like to use mathematica to plot these planes for many values of a and b, say a range of $-10\leq ...
1
vote
1answer
96 views

ContourPlot of a line defined by the intersection of equalities and inequalities

On the complex plane, I want to plot the set of points defined by the solution of a system of equality and inequalites, such as $S=\{z \in \mathbb{C}| Im[z+1]=0 \cap Re[z+1]>0 \}$. However, ...
3
votes
2answers
236 views

Hatched filling for ListLinePlot

I have the following piece of code that uses ListLinePlot to plot 3 curves which I would like to each have a hatched filling of different colors. I've tried a couple of approaches I found on this ...
1
vote
2answers
241 views

Trying to create a Gain (Bode) plot

I am trying to get this code to work and I can't seem to figure out what's going on. I realize that "simple" syntax problems are frowned on here but to us noobs they are NOT simple. (and the ...
1
vote
1answer
77 views

Obtaining probability density function from a cumulative distribution function

I have some difficult times to obtain the density function of ...
6
votes
2answers
4k views

Plotting two functions in one graph, with different value ranges [closed]

Plot[2x, {x,0,4}]; Plot[x^2, {x,4,8}]; How do I merge these two graphs into one?
1
vote
1answer
335 views

Filling between ParametricPlot and Plot

There are some similar questions: (1) (2) have been ask, but I think this is a different one. If we have a ParametricPlot and a ...
3
votes
1answer
148 views

How to build a constant Graphics object

I'm making an animation with Manipulate for a representation. The code looks like this ...
1
vote
0answers
40 views

Can Listplot output data to an image whilst leaving axes and labels as vectors? [duplicate]

Question: Can Listplot be set to render the data as an image whilst leaving axes and labels as vectors when saved as a PDF? Context: I have around 100,000 points in my listplot which when saved to a ...
2
votes
3answers
234 views

plotting two Error List Plots in one

I made two ErrorListPlots ...
2
votes
2answers
299 views

graph of the Cantor set in Mathematica

The interval [0,1] of the real line, which we call C0, and divide it into three equal subintervals. In this way we obtain the following intervals [0,1/3],[1/3,2/3], [2/3,1] and we interval rid ...
9
votes
2answers
399 views

Artefacts in 3d plots

I am trying to plot a simple function ...
6
votes
2answers
152 views

Is this an error/bug with Plot Command? [duplicate]

I've tried doing: Plot[x^(2/3), {x, -10, 10}] and I get Which is wrong, since the cubic root can receive negative numbers. Also when I plot something ...
0
votes
2answers
87 views

Plot function the uses Solve

Can someone tell me why I get an error (and how I get around it) from Solve while I try to Plot a function like: ...
5
votes
3answers
255 views

How to pass options to ListPlot when using a DataSet?

Still learning the new DataSet feature, I would like to create a ListPlot where the color of the points is to be determined by a ...
1
vote
1answer
80 views

Plots are clipped randomly (almost)

I am experiencing a strange behavior in plotting a lot of functions. Basically, they are clipped within an horizontal range. Let try to run this code by varying nmax, it could be a problem of my ...
0
votes
2answers
303 views

Change the colour scheme in DensityPlots to make the zero white

We are trying to plot a density plot using the TemperetarueMap colour scheme. However, we don't seem to be able to make the white colour correspond to the value zero of the function we are plotting. ...
-3
votes
2answers
133 views

How can I plot a list of 1-D data along the x-axis?

I would like to know how to create a graph from the following data: ...
1
vote
1answer
60 views

How to increase the font size in PlotMakers

When I use PlotMarkers -> {\[FilledCircle], 40} in ListPlot I get something like this: How can I increase the font size of ...
0
votes
1answer
276 views

NDSolveValue with a multiple variable equation

I'm trying to plot this equation of motion for a pendulum with a periodically applied torque for 20 cycles, where b, m, L, g are given constant values. ...
1
vote
0answers
38 views

How to Plot with different styles different InterpolatingFunction [duplicate]

Im sorry for this question I'm new and it may be a stupid question, but I can't find nothing specific. I have these differential equations and NDSolve give me ...
5
votes
2answers
276 views

Manipulate showing the trajectory of a particle

I'm trying to plot the trajectory of a particle: ...
16
votes
0answers
244 views

Bug(?) in version 10: Tooltip and ListPointPlot3D

Bug introduced in 10.0.0, persists through 10.1 The coordinates of a point in a three dimensional graph can be shown in a tooltip: ...
13
votes
3answers
336 views

ListContourPlot in V10

Bug introduced in 10.0 and persisting through 10.3.1 or later It seems that I obtain different results when using ListContourPlot under V9 and V10. Using this ...
1
vote
1answer
131 views

Nothing happens when I click the mouse clicked on my graphics

I wrote codes to record list of coordinates when mouse clicked. It is expected that the coordinates should be plotted dynamically. But actually nothing happened. Can anybody help me to find the ...
3
votes
4answers
242 views

Tooltip with ListLinePlot and interpolation

Is it possible to get the coordinates of any point on a graph using Tooltip, ListLinePlot and interpolation ? For example on this simple example ...
0
votes
2answers
89 views

Restrict plot of object to be below a given plane in a ContourPlot3D

In a ContourPlot3D, I only want to part of the plot. Such as the part of a cylinder that lies beneath a plane. ...
8
votes
1answer
150 views

ParametricPlot MeshStyle bug in v10?

Bug introduced in 10.0.1 or earlier and fixed in 10.0.2.0 Original Post The documentation gives the following code and says "Use a red mesh in the x direction and a blue mesh in the y direction:" ...
2
votes
1answer
82 views

Problem with Style in a Plot

I would like to simply plot a density function $f_1$ and I would like to put a legend but I cannot do it as I wish. The problem is simple but I spent alot of time and couldnt solve it. I will be happy ...
1
vote
1answer
64 views

Automatically to add some points for a plot

Say I want to plot this Plot[x,Sin[x],{x,0,4 Pi}] And I want it to show 4 nicely spaced points, on the line. Is there an automatic way to do this? I was reading ...
5
votes
2answers
253 views

ListPlot inserts extra PlotMarkers and Mesh at crossing points

In the example below, ListPlot with PlotMarkers -> Automatic and a variant using ...
1
vote
2answers
101 views

How to fix the order in which text appears in an axis label (V7) [duplicate]

One of the AxesLabel is "$:\text{log}|\Phi8b(u)|\color{Red}{\text{Red}}$". Question: How to make it like: "$\color{Red}{\text{Red}}:\text{log}|\Phi8b(u)|$"?. My Mathematica commads: ...
8
votes
1answer
674 views

How do I generate cross sections of a 3D graphic?

I would like to approximate the volume of a bottle by summing up the volume of the individual disks. I have obtained code references from a demonstration. But how do I generate the cross sections? The ...
5
votes
2answers
453 views

Plotting two recursive functions

I'm trying to plot two recursive functions (p and θ) on a map. So far I have: ...
3
votes
1answer
511 views

Plotting on the Raspberry Pi

I just now powered on my new Raspberry Pi for the first time and tried the supplied Mathematica (Wolfram Language). One thing I tried was Plot[x, {x, 0, 1}] ...
3
votes
1answer
168 views

Draw function with different colors associated to a parameter

I want to generate a plot similar to this one, which allows for different colors when given different parameters : (This is the Moreau-Yosida regularization of the absolute value) the Moreau-Yosida ...