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

learn more… | top users | synonyms (10)

3
votes
1answer
97 views

Graphs Plotting Discontinuous

I'm trying to plot a graph from the eigenvalues of a matrix I created. The graph shows with discontinuities in it and I was looking for some feedback. Here's the code: ...
2
votes
2answers
253 views

ParametricNDSolve and plotting problem

I have a problem with ParametricNDSolve: ...
3
votes
2answers
204 views

Adding walls to a region plot

I've done this code: Plot3D[x + y + 1, {x, 0, 1}, {y, 0, 1}, RegionFunction -> Function[{x, y, z}, 0 <= y <= Sqrt[x]]] Producing this image: In ...
4
votes
2answers
233 views

How can I use legend in ContourPlot3D and add arrowheads for axis?

I am using ContourPlot3D to show two surfaces. This is my code. Now I want to use Legend to distinguish the two surfaces, and add arrowhead for the three axis. ...
0
votes
1answer
50 views

Plot command uses same colors when applying pattern on list [duplicate]

When I do Plot[{fun1,fun2} ./ val1->1,{t,0,10}] then both plots are in the same color! If I use instead ...
1
vote
0answers
69 views

Would you give me some advice on Elliott's equation? [closed]

I'm trying to solve below equation on mathematica for plotting, but I'm a complete beginner. ...
15
votes
3answers
325 views

Glitch in Filling?

Bug introduced in 8.0 and persisting through 10.4 or later I ran into a problem while plotting and I was able to narrow it to this. Before I start "spelunking" I'd like to know if I am overlooking ...
1
vote
0answers
121 views

Symbolic and numeric calculations (and plots) simultanuosly

I use Mathematica to do a bunch of symbolic calculations (integrals, ...). This is good because I found that sometimes, if I plug in numeric values, Mathematica takes much longer. However, sometimes ...
6
votes
3answers
552 views

FontSize problematic when used in LabelStyle

Bug introduced in 9.0.0 and persisting through 10.0.2 or later Consider the following few examples, each producing a trivial graphic object: ...
3
votes
2answers
218 views

Plotting 3D arrows on a surface

I have a cone: ...
0
votes
0answers
100 views

Using Animate with ListPointPlot3D on more than one list

I have a couple orbits defined which have been mapped into one array as shown: ...
0
votes
1answer
127 views

Empty plot when calling the SphericalHarmonicY function in Plot or SphericalPlot3D [duplicate]

I'm getting an empty plot for the following code: SphericalPlot3D[ 2*Pi*Sin[theta]*SphericalHarmonicY[100, 50, theta, phi], {theta, 0, 2*Pi}, {phi, 0 , Pi}] ...
5
votes
1answer
203 views

Why does the replace all (/.) evaluate differently in plot

I'm plotting this function: Plot[(2 (l/2 π)^2 ((2 π f)/c)^2 /. {f -> (f 10^9), l -> .01, c -> 3 10^8}), {f, 17.5, 26.5}] but it does not plot ...
2
votes
1answer
90 views

Why doesn't Directive work with some settings (e.g. Arrowheads) for VectorStyle?

In Mathematica 10 on two different Windows machines, VectorPlot[{1, 1}, {x, -1, 1}, {y, -1, 1}, VectorStyle -> "Segment"] works just fine, but ...
1
vote
1answer
232 views

Why ContourPlot3D plot is in yxz system?

I was trying to explain to someone projection of points in space. I used ContourPlot3D and plotted the planes x=1, y=1 and z=1 to show that the point (1,1,1) is the point where these three planes ...
5
votes
2answers
210 views

Flipping y-tick labes or x-tick labels simply

As it is common to most of us, when we plot a figure, x label ticks are located above x-axis and y label ticks are located at the right of y-axis. Is there any simple way to alter this in ...
2
votes
1answer
129 views

Test whether point belongs to the region between contour lines in ListContourPlot

A simple question but, unfortunately, I could not find the answer. Suppose I have a ListContourPlot built from some data set, e.g., ...
0
votes
2answers
957 views

How to label a GraphicsGrid? [duplicate]

I am constructing a GraphicsGrid from a set of plots. Is there an easy way to add an overall label for the whole grid?
1
vote
1answer
120 views

Solve for values which produce negative real Eigenvalues?

Given an n x n matrix "A", with one or more unknown parameters, I'd like to show a plot of which values produce stability (negative Eigenvalues). For example, say you have a simple mass-spring-damper ...
1
vote
1answer
155 views

Changing the width of BarLegend with Contour argument

Bug exists in 10.0.2 Is it possible to change the aspect ratio of the BarLegend in Mathematica? The option LegendMarkerSize, ...
0
votes
1answer
253 views

Equation of line from loglog plot

Given some data that looks linear on a ListLogLogPlot, how can I find the correct equation (and particularly, the correct slope of the line)? I have a sample code here ...
4
votes
2answers
246 views

Show cannot combine two graphics

First we load the data file data = ReadList["data_smp.out", Number, RecordLists -> True]; I know that I should provide some sample data but in this case the ...
2
votes
1answer
142 views

How to save and manipulate an already plotted graphic

I have a figure which took some hours to create in Mathematica. I assigned it to a variable myplot, i.e., myplot = Plot[..]. Now ...
5
votes
1answer
512 views
2
votes
1answer
74 views

Plotting Multiple Solve Functions

My goal is to plot the functions returned from Solve but assigning each solution to a different function. Here is an example where I do it by hand ...
6
votes
3answers
377 views

How can i construct a 3D surface pass through a curve defined by formula and some other controllable points?

For example, If a have a curve defined by x^2+y^2=1 and z=0, and some isolated points having z coordinates, Can I construct a 3D surface passed through? It's better if I can change the surface shape ...
1
vote
2answers
523 views

How can I plot a 3-variables function to identify the neutral surface and a region

I wanted to plot a 3-D solid region, in which my function f(x,y,z)= x (1/(1 + 0.06))^3 + y (1/(1 + 0.06))^2 + (2 z^2)/15 (Sin[10 Degree])^2 -z/3 Cos[10 Degree] ...
0
votes
0answers
103 views

Unequal behaviour of FindRoot to two similar functions

Unfortunately, I have some difficulties to plot a function. Here is my code: ...
0
votes
3answers
215 views

Simple pattern/texture on chart elements [duplicate]

If I print the following BarChart in black and white, then it is very difficult to tell which bar is "a" and which is "b". ...
7
votes
3answers
285 views

How could I upload a XLS file to Cloud and then plot it?

Bug introduced in 10.0 and fixed in 10.3 or earlier I want to upload a file to the Wolfram Cloud and plot the list: So I use the following code to check its head at the beginning: ...
3
votes
2answers
224 views

Grid lines extending too far

The grid lines in the following plot extend beyond the data and, in particular, into the numbers along the axis. ...
2
votes
2answers
532 views

Using RegionPlot3D to make a cone under restrictions

I have to plot a cone that satisfies this statement: Use the RegionPlot3D command to draw a picture of a cone with its point at the origin. The other end of the cone is a circle with radius 5 ...
15
votes
2answers
930 views

How to wrap a plot around a circle?

Consider the code a = Table[BesselJ[i, x], {i, 0, 3}] Plot[a, {x, 0, 20}, Axes -> False] producing I'd like to transform the plot into a circle. In other ...
10
votes
3answers
833 views

Functional defined Ticks of LogLinearPlot does not work

Bug introduced in 10.0 and persisting through 10.4 or later version 10 $Version "10.0 for Microsoft Windows (64-bit) (June 29, 2014)" Consider three ...
0
votes
0answers
268 views

Empty Graph for Absolute Function

I wanted to plot the following equation: ...
2
votes
2answers
181 views

Changing the Ticks in LogLinearPlot for representation pH values

I need to change the ticks in the xaxis for representation pH values, but the ticks are not dispersed along the range of xaxis. Another question: why the vertical line defined with Epilog is not ...
1
vote
0answers
142 views

Can not understand the code to plot Fourier Series approximation of the line

I'm reading the CDF file from Making Formulas… for Everything in the WolframAlpha blog. I am confused by what's happening with In[9] and In[10]. Can anyone tell me what these two functions mean, or ...
-5
votes
1answer
73 views

Trying to get plots to work AGAIN

OK, I have asked stuff here before. I am probably driving people crazy but this is making me angry and frustrated. And yes, I bet this is some simple syntax thing but I can't figure it out and I am at ...
0
votes
1answer
125 views

Why is `B /. h -> #2 &` not a pure function?

I am trying to plot the energy surface of the mean field Ising model, but I am running into a problem with setting the MeshFunctions for the plot. ...
5
votes
1answer
334 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 ...
1
vote
0answers
157 views

ErrorListPlot Not Plotting

I'm trying to use ErrorListPlot on Mathematica 6.0 (it's the copy my school gave me for a lab course). When I run this function it produces a graph, but there is ...
19
votes
2answers
845 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
305 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
207 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
210 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
102 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
108 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 ...