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

learn more… | top users | synonyms (4)

2
votes
1answer
113 views

Plot: How set markers in plot in front of axes

I draw a plot using ListPlot. But I noticed that PlotMarkers are 'covered' by the axes; see example below: I was trying to ...
2
votes
2answers
67 views

Parabola plotting tangential to x = const, and y= const

ContourPlot[ pm Sqrt[x - a] + pm Sqrt[y - b] == Sqrt[c], {x, 0, 2 a}, {y, 0,2 b}] plots a parabola, but only a part between points of tangency (a, 0) and (0, ...
4
votes
1answer
64 views

Thickness definition for ParametricPlot3D

How is the thickness defined in ParametricPlot3D? For 2D plots, the thickness "is given as a fraction of the horizontal plot range," but how does that work in 3D ...
2
votes
2answers
76 views

Simple plot control

Absolute newbie question: Plot[2x-1,{x,-4,4},GridLines->{Range[-4,4],Range[-8,8]}] works about as expected, except that (a) I would like the tick ...
1
vote
1answer
55 views

Plotting the results of NSolve as Horizontal Lines

Suppose I use NSolve to find the Real approximations to the intersections of two separate functions over some specified range: ...
4
votes
4answers
526 views

Visualizing Line Integrals

I have a plane curve $C$ described by parametric equations $x(t)$ and $y(t)$ and a function $f: \mathbb{R}^2 \rightarrow \mathbb{R}$. The line integral of $f$ along $C$ is the area of the "fence" ...
3
votes
2answers
122 views

Image Size using {w,h}

Mathematica help file says: "With ImageSize->{w,h} an object will always be drawn in a $w\times h$ region, and will be sized to fit in the region. " However: Doesn't look like "and will be sized ...
0
votes
1answer
46 views

Plot Legends when first argument was generated by Table[]

I can get a plot to generate legends for different functions when these functions are put into a hand-coded list. However, when I generate the list of functions using Table[] only one legend is ...
15
votes
4answers
432 views

Exclude data from a list

Let's create some random sample data data = Table[{RandomReal[{-10, 10}], RandomReal[{-10, 10}]}, {i, 1, 300}]; Then we plot them using ...
2
votes
1answer
140 views

Draw a region bound by a sphere and a cylinder

Here is my code for drawing the region bounded by the sphere $x^2+y^2+z^2=1$ and the cylinder $x^2+y^2=x$. ...
1
vote
1answer
91 views

How to plot $\frac{x^{-2/3} e^ { \left(-\frac{x^{2/3}}{2}\right)}}{\sqrt{2 \pi 9}}$ for negative real numbers?

While trying to $\text{Plot}\left[\frac{x^{-2/3} e^ { \left(-\frac{x^{2/3}}{2}\right)}}{\sqrt{2 \pi 9}},\{x,-5,5\}\right]$ in mathematica, I was initially wondered (though mathematica's silence was ...
2
votes
1answer
42 views

Manipulate Plot with Controller being difference of two variables

I'm not sure if this is possible at all or whether manipulate is the best option to plot this, but currently I'm using the following code to plot Function Func vs. t values for different x values. ...
2
votes
0answers
35 views

ListPlot with conditions Part II

In a previous post Part I @Julian S proposed an interesting method in order to segment the data. A copy of the data file can be found here: data. I know that I should provide a minimal working example ...
2
votes
2answers
175 views

ParametricPlot3D line not smooth

Multivariate parameters appear to present a jagged appearance of integrands (using default Runge-Kutta ODE integration intervals?) in ParametricPlot3D plotting on a single argument. Higher Mesh.. ...
0
votes
0answers
52 views

Can not understand the code to join points into line segments

I'm reading the CDF file from Making Formulas… for Everything in wolframalpha blog. It's hard for me to understand the In[17] code of function pointListToLines. I especially want to know what the use ...
3
votes
2answers
72 views

RegionFunction generalized to plot a different colour/style for the largest expression [duplicate]

I have several functions of two variables defined in some region, say functions[x_,y_]:={0,x-y,Sin[x^2-y]} I'd like a plot to show at a glance the regions where ...
2
votes
2answers
320 views

draw part of parabola using graphics

today I was doing my physics homework. one of the questions was draw velocity-time and position-time graphs from the acceleration-time graph. So for the first step I draw acceleration-time using ...
3
votes
1answer
65 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: ...
1
vote
2answers
128 views

ParametricNDSolve and plotting problem

I have a problem with ParametricNDSolve: ...
3
votes
2answers
156 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 ...
3
votes
2answers
102 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
36 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
61 views

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

I'm trying to solve below equation on mathematica for plotting, but I'm a complete beginner. ...
9
votes
2answers
175 views

Glitch in Filling?

Bug introduced in 8.0 and persisting through 10.0.2 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 ...
1
vote
0answers
49 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 ...
2
votes
1answer
76 views

Root finding: zeroes of Mathieu function

I am finding the roots of the Mathieu sine function, and find Mathematica and Maple do not agree on the solutions. For example, consider the solutions of Abs[MathieuS[4x, 4, Pi]] = 0, for 2 < x ...
4
votes
3answers
84 views

FontSize problematic when used in LabelStyle

Bug introduced in 9.0.0 Consider the following few examples, each producing a trivial graphic object: ...
3
votes
2answers
100 views

Plotting 3D arrows on a surface

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

Using Animate/ListPointPlot3D on more than one list

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

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

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}] ...
3
votes
1answer
83 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 ...
1
vote
1answer
52 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
83 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
97 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
42 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
76 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
77 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
44 views

Changing the width of BarLegend

Is it possible to change the aspect ratio of the BarLegend in Mathematica? The option LegendMarkerSize, in my case below, only ...
0
votes
1answer
66 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 ...
3
votes
2answers
174 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
99 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
279 views
2
votes
1answer
55 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 ...
3
votes
3answers
222 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 ...
0
votes
0answers
19 views

Plot an intersection of surfaces [duplicate]

I need to plot a curve in 3D that is an intersection of two surfaces, for example intersect the cylinder $x^2+y^2=1$ with a plane $z=x+y+1$. Here is a related question Plotting the intersection of ...
1
vote
2answers
142 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] ...
1
vote
1answer
83 views

NDSolve not creating plots [closed]

This is probably stupid, but I wasn't able to find any way to get equations created from NDSolve to be plotted. ...
0
votes
0answers
75 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
96 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". ...
2
votes
0answers
82 views

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

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: ...