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

learn more… | top users | synonyms (4)

21
votes
4answers
2k views

Mathematica envelope for the bottom of a plot, a generic function

I have the following set-up: xaxis = Table[x, {x, 0, 10, 0.01}]; yaxis = Table [Sin[x] + Abs[RandomReal[{-1, 1}]], {x, 0, 10, 0.01}]; ListLinePlot[Transpose[{ xaxis, yaxis}]] My ...
1
vote
1answer
61 views

Bug with DateListPlot with ToolTip with NumberForm?

Is anyone able to confirm if this is a bug in version 10.1 on Windows 7 Pro? I am attempting to produce a DateListPlot with ...
5
votes
2answers
136 views

Customizing X-axis label for groups of 7 (weeks)

I have a set of data organized as a list where each list entry represents a day of the week. The data starts on a Sunday. It represents about 5 months of data. Each element of the list is ...
0
votes
1answer
52 views

3D scatter plot with labels [closed]

I am doing 3-D scatter plot with labels and using the following code ...
8
votes
0answers
52 views
3
votes
2answers
186 views

how can I bold the outline of conic section as the plane intercepts the cone?

Plot3D[{-5 - x - y, -Sqrt[8 x^2 + 8 y^2]}, {x, -5, 5}, {y, -5, 5}, Mesh -> None, BoxRatios -> {1, 1, 1}, PlotLegends -> "Expressions"]
2
votes
2answers
116 views

Filling graph between lines and plots

I would like to create a filling delineated by the plots and lines as specified below: ...
13
votes
2answers
1k views

How do I map a Mollweide projection onto a sphere?

I have this Mollweide projection of the Earth circa 600 million years ago (http://jan.ucc.nau.edu/~rcb7/370moll.jpg).(1) I want to map this onto a sphere. My results have big black splotches in ...
0
votes
0answers
36 views

Bincounting multiple data

I have 5number of single column data files and I imported all of them using data = Table[Import["hist501" <> ToString[i] <> ".txt", "List"], {i, 5}]. Now I want to determine the bincount of ...
3
votes
2answers
158 views

Vector Plot of a linearly varying cantilever

I want to drawing with Vector Plot a deflection and slope of a linearly varying cantilever. And with Contour Plot it works but with Vector Plot it didn't. Here is the code: ...
0
votes
2answers
54 views

Question RE DiscreteMarkovProcess Graph Labels

I'm trying to label the arc's of my Markov chain with symbols like $\alpha$, $\beta$, etc., to show how the Markov chain looks abstractly. So, I did this... ...
0
votes
0answers
41 views

How to draw an ellipse [duplicate]

I'm new. I just started learning how to use Mathematica. I'm trying to draw an ellipse given by the implicit equation $y^2 = 1/625\,(330 625-529x^2)$. I cannot figure out how to do it.
7
votes
1answer
74 views

Iterator variable not blocked in ParametricPlot

Introduced in 10.0, persists through 10.1 It appears that perhaps the iterator variable r is not Block-ed in the ...
0
votes
2answers
63 views

How to Fill ContourPlot

Given a contour plot such as function = Cos[c] + Cos[a] pltc = ContourPlot[function == 1/2, {a, 0, 4 Pi}, {c, 0, 4 Pi}]; How can I color the regions in which ...
0
votes
0answers
51 views

Fixed colors for fixed values in contourplot legend

I am trying to make a contour plot of a gravitational potential, consisting of a sum og different potential.s. I would like to plot them separately with a BarLegend that has the same colors for the ...
0
votes
1answer
55 views

Plotting six chosen rows of a matrix

I have a matrix,W, whose dimension is n x n, each entry is a number. I need to plot only the values of six rows, namely those ...
0
votes
2answers
78 views

Combine two functions in mathematica to get one image with two elements

I am trying combine this two functions into one piece in grid. ...
0
votes
1answer
96 views

Confused by behavior of ListLogPlot in Mathematica 10

I have a notebook I originally created in Mathematica 8, where the following (simplified) code worked fine. ...
2
votes
1answer
404 views

White regions in DensityPlot — is this a bug with ColorFunctionScaling?

Is this a bug with ColorFunctionScaling? When I try to supply my own ColorFunction Mathematica seems to partially ignore it, ...
-1
votes
0answers
20 views

outliner in a contour plot

I have a blank part in my contour like this because the values at that part are very large. If I add "PlotRange->All", it affects the legend. How can I keep that part colored and also show the ...
7
votes
2answers
403 views

A topoplot function for Mathematica

Matlab's EEGlab toolbox has a topoplot function: http://sccn.ucsd.edu/eeglab/ A typical topographical plot of an EEG signal is given below: How can I reproduce this in Mathematica. I know that ...
18
votes
3answers
5k views

Is it possible to change the color of plot in Show?

For example: p = Plot[Sin[x], {x, 0, 1}] Is it possible to write options in Show to change the curve's color for example into ...
0
votes
0answers
21 views

blank part in the contour plot [duplicate]

Why did my listcontourplot have some blank part like the below? I've checked that my data is in the range of [2.5, 4]. Is it because that it changes so fast??
2
votes
0answers
69 views

Setting OperatorSubstitution to false causes Plot's labels of sufficiently small size not to appear in the specified typeface. Is this a bug?

This problem is no longer there after I upgraded to Mathematica 10.0.2. If I set OperatorSubstitution to False, the labels of ...
15
votes
5answers
438 views

Plot a partition of the sphere given vertices of polygons

I saw in this question that Mathematica can draw spherical triangles. I guess something similar can be done to plot a spherical polygon. I am interested in something similar: I have a set of ...
0
votes
0answers
21 views

ContourPlot looking choppy [duplicate]

I want to plot a simple curve, the bifolium (x^2+y^2)^2-yx^2=0. I entered n=1/2; ContourPlot[(x^2 + y^2)^2 - y x^2 == 0, {x, -n, n}, {y, -n, n}] into mathematica and got the plot which looks very ...
3
votes
1answer
43 views

listcontourplot on a sector of a circle [duplicate]

s = Import["Desktop/tension.xlsx"]; ListContourPlot[s, Contours -> 10, PlotLegends -> Automatic] In fact, it is a contour of a circular part from (2,0) ...
1
vote
1answer
76 views

Streamline Plot from velocity discrete values

I solved Navier Stokes equation in C for lid driven cavity flow and extracted converged values of u velocity and v velocities in ...
1
vote
1answer
32 views

Setting Fixed Axis

Is it possible to prevent the values of axis of a 3D plot from moving? If I run this code: ...
1
vote
2answers
51 views

3D box dimensions

How can I set the dimensions of the box of a 3D function, without influencing the function? For example I want to see this function ...
2
votes
1answer
57 views

Problem with AxesOrigin option in ListPlot

Please compare the output of these two similar codes: ...
5
votes
0answers
65 views

Strange artifacts on graphics saved as PDF

I have a problem when plotting 3D graphs. Plotting any graph with the default settings using Plot3D, e.g. ...
2
votes
1answer
67 views

Stability Boundaries via Routh-Hurwitz Criterion

I'm attempting to determine the stability boundaries of a 2nd order system via Routh-Hurwitz stability criterion. That is to say, I need to compute when a polynomial, which is in terms of variables ...
1
vote
2answers
162 views

Want to put additional items in my plot legend

I was able to plot most of the parts of the figure. But I have a problem with some legend items. Here is my code: ...
0
votes
0answers
30 views

Draw sample functions from Gaussian Process prior

Previously, I have written implementation codes of Gaussian Process regression in Python and Matlab. However, for better interaction and visualisation, I am currently working on implementation in ...
2
votes
2answers
153 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 ...
10
votes
0answers
137 views

RegionPlot returning a number

Introduced in 10.0, persists in 10.1. I had updated my mathematica to version 10 few days ago. And I had been shocked by the following fact: ...
10
votes
1answer
128 views

Why does Plot try symbolic values?

I have the following code: Test[a_] := (Print[a]; a*2) Plot[Test[a], {a, 0, 10}, PlotPoints -> 5, MaxRecursion -> 0] This should plot ...
9
votes
2answers
177 views

How to make a ArrayPlot/MatrixPlot in polar coordinates?

in fact, I want to plot a image like: Fig1 the picture above is from a paper Zhou K.-J. et al. 2014 about ion up-flow of ionosphere in MATLAB there is a specialized function pcolor which could ...
3
votes
1answer
216 views

Package for nonlinear plot coordinates

Is there a package for plotting in nonlinear coordinates? I mean that I provide coordinate transformation functions {xi(x,y), eta(x,y)}, for example ...
0
votes
0answers
30 views

Different Order of Magnitude on Distinct Interval Plot Axes

I have a function as bellow y[x_] := 9*10^-9*(Exp[x/(2*23*10^-3)] - 1) I am trying to plot this function for the range ...
0
votes
1answer
77 views

Plotting with arbitrary units

I would like to plot, say, Sin[x/a] with multiples "a" showing on the x axis as units. How can I do that ? I have tried setting the plot limits e.g. {x, -2a, 2a}. I cannot plot said function even ...
2
votes
1answer
193 views

Place legend without border above the plot

I use Mathematica 7.0 and as far as I know, there is not method PlotLegends, only PlotLegend. I want to set my legend - without background, shadow and frame - above my plot, as in the example belowe: ...
0
votes
1answer
45 views
2
votes
2answers
156 views

random discrete data 3D plot

I get the random discrete data as follows ...
1
vote
1answer
55 views

Plot roots of polynomial system of equations in 3 variables

I have the two equations $x^2 + 2y^2 + z^2 = 1$ and $xz -y^2 = 0$ I want to plot the roots in 3D. i.e the coordinates $x,y$ znd $z$
0
votes
1answer
37 views

How to change the radius markers and number of concentric circles in a polar plot?

I'm using PolarPlot to plot a function in [0, 1] in a log scale plot, capped at -40 dB, as in the following example: ...
0
votes
1answer
54 views

How do I apply a conditional append rule to plot randomly chosen points?

I'm working on an attempt at forming a sort of "Mandelbrot" set using Newton's method and randomly chosen points. Effectively I need to define a loop for Newton's method to determine whether my points ...