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

learn more… | top users | synonyms (4)

4
votes
2answers
135 views

Plot more points only in specific region of plot

I have the code shown at the bottom of this question which generates a 3D plot. There are locations where the two surfaces you see form cones and touch at infinitesimally small points. These points ...
0
votes
2answers
55 views

Is it possible to place a shape at each point in my array? [closed]

I have an array of points in 2D, I'd like to plot them marking each point with a square whose size and colour I can edit. I am sure that this is possible I am just new to mathematica and would greatly ...
2
votes
2answers
101 views

How to Plot a Series

I would like to plot f1[x_, n_] := Sum[Sin[(2 j - 1) x]/(2 j - 1), {j, 1, n}] on a single plot containing f1(x,50), f1(x,100), f1(x,1000), with three different ...
1
vote
0answers
37 views

x86_64 Linux: plotting feature [duplicate]

Some features with V10.0.1.0 plotting under x86_64 Linux (xubuntu 12.04 & 14.04). I use ListPlot, but I also see this using other Plot functions. Generate some data: ...
4
votes
1answer
206 views

Problems with RootLocusPlot

I am having some trouble to understand how the RootLocusPlot works (options, drawing and etc.) Here is an example ...
4
votes
3answers
996 views

How to fix BodePlot that comes with Mathematica?

I am using Mathematica to go through the examples and exercises on the book Modern Control Systems, 6th edition by Dorf. On page 605, there is a table (Table 8.5) with the Bode plot for several ...
2
votes
1answer
150 views

Plotting 3D Vector Field in one plane

I want to plot a vector field F={Fx, Fy, Fz}. However, I only want to plot it in one plane (say, z=0). When I use ...
2
votes
2answers
88 views

Controlling PointSize in a RegionPlot

I have a "named" point in Mathematica 10 and am plotting it like this using RegionPlot: ...
-1
votes
1answer
54 views

Labeling named point in Mathematica 10 [closed]

I have a "named" point in Mathematica 10 defined like this: point["camp location"] = Point[{latitude, longitude}]; I assume there is some way to make the name of ...
0
votes
2answers
65 views

Spherical parametric plot

How can I plot such a parametrized curve: $r = 2cost + sint$ $\theta = t$ $\phi = sin10t$ where $0<t<\pi/2$. In the documentation only has been discussed parametric plot in Cartesian ...
3
votes
1answer
75 views

Why does BernsteinBasis not plot correcly?

I want to use the built-in function BernsteinBasis to learn about Bezier curves. I tried the following: ...
0
votes
0answers
20 views

Plotting vector fields in polar coordinates [duplicate]

I need to plot this as a vector field. $\mathbf{V} = \frac{D}{r^{2}}(\cos(\theta)-u\cos(\theta))\mathbf{\hat{r}} - 2*u\sin(\theta)\boldsymbol{\hat{\theta}}$ How do I make a vector field plot out of ...
3
votes
0answers
118 views

FindPeaks with noisy data

I am trying to understand the FindPeaks function in V10. I have two questions. Here is some measured data with noise. ...
0
votes
1answer
42 views

Plotting polyhedra faces with polygons removed from the interiors of the faces

I have dozens of vertices and dozens of faces which is why I use the v={};i={} and Graphics3D and ...
16
votes
3answers
968 views

Get x and z coordinate from an image and make a parametric surface

In this blog entry, this step is mentioned: I grabbed an image of a Peugeot wine glass from the web and used the Get Coordinates function to digitize its outline, which I fed to Interpolation to ...
1
vote
1answer
36 views
14
votes
5answers
348 views

Different results between V9 and V10 when using Style with Listplot

Consider this example: data = Table[{x, x^2}, {x, -2, 2, 0.1}]; ListPlot[Style[{#1, #2}, PointSize[Abs[#2]/50], Hue[#2]] & @@@ data] the results from V9 and ...
6
votes
3answers
315 views

Getting a custom bezier curve function to work

In general, $nth$-degree Bezier curve defined as below: $$\vec{C}(u)=\sum_{i=0}^{n} B_{i,n}(u) \vec{P_i} \qquad 0\leq u\leq1$$ $B_{i,n}(u)$ is the classical Bernstein polynomials, ...
18
votes
3answers
653 views

How to make a 3D topographic globe?

I've made some attempt with this dataset of elevation. But I have some trouble with ListSurfacePlot3D, which can not show the globe correctly: And I've checked that the data is out of problem, ...
5
votes
4answers
170 views

Control PointSize on a ListPlot

When I thought to vary PointSize on a ListPlot, I expected to find it trivial to do. I've likely overlooked something simple, ...
5
votes
1answer
180 views

Adding arrows in curves

Let's consider the following case ...
-1
votes
3answers
87 views

Using Plot inside If statement [closed]

I would like the function f(x,t)=x+t to be plotted provided a condition on the running variable `t' is satisfied. This is what I tried: For[t = 1, t <= 10, t = t + 1, If[t == 5, Plot[{x + t}, {x, ...
0
votes
1answer
544 views

PDF of binomial distribution and mixed binomial distribution

I want to plot the PDF of binomial distributed function and a mixed binomial distributed function, therefore I entered for the binomial distribution function the following: ...
11
votes
5answers
335 views
1
vote
1answer
63 views

Manipulating multiple parameters in a ParametricPlot

The question is not specific, but not entirely non-specific. Please suggest how to compactly re-code and generalize ParametricPlot command to push in one more parameter ...
5
votes
3answers
175 views

How can I add labels to the points in my scatterplot?

So I'm creating a scatter plot of a large data array, but need to be able to determine which points are where when I look at the plot, so I'm trying to add labels to them. ...
11
votes
4answers
3k views

Why are PlotLegends not combined with Plots?

I'm using PlotLegends in v9. It seems that in the documentation examples, plots and legends are combined into one graphic: Here's an example from ...
2
votes
3answers
147 views

How to change the filling color under a plot according to a value?

Mathematica has an option to fill the space under a curve with a value: ListLinePlot[Transpose[data][[1]], Filling -> Axis] I have a dataset ...
7
votes
2answers
209 views

listplot very large numbers

Suppose we have the following function: NN = 150; W[n1_] := NN!/(n1 ! (NN - n1!)) (1/2)^n1 (1/2)^(NN - n1) Then we can Plot or Listplot it: ...
2
votes
0answers
56 views

How to include confidence intervals into ProbabilityScalePlot?

I use ProbabilityScalePlot[data, "Weibull"] to plot measured data and ...
9
votes
4answers
303 views
4
votes
1answer
102 views

Visualization/colorization of many outliers in a BoxWhiskerChart

Imagine a larger data set which I want to display using BoxWhiskerChart. ...
-1
votes
2answers
68 views
6
votes
3answers
140 views

Weird output of DistributionChart

I have a larger data set and want to display it using DistributionChart. ...
3
votes
2answers
145 views

Adding labels and numbers in axes

Let's see the following test case ...
2
votes
2answers
183 views

How to get axes labels with PlotTheme->“Scientific”?

I'm liking the new plot themes in Mathematica 10, but finding that I can't override the options it sets. For example, ...
38
votes
1answer
585 views

Is it possible to define new PlotTheme?

In version 10 one can define, say, $PlotTheme = "Scientific" Which changes the appearance of all plots. This is fantastic because on the one hand, I can have ...
1
vote
0answers
73 views

Real time visualization of parametric plots

I wish to see the following curve develop in real time. f = {Cos[s/Sqrt[2]], -Sin[s/Sqrt[2]], s/Sqrt[2]} ParametricPlot3D[f,{s,-2Pi,2Pi}] I tried to get ...
2
votes
0answers
89 views

Weird glitch again!

I have been struggling with these glitches for two days... A related question I asked is here How to eliminate the white gaps in the graph Here is the code, ...
2
votes
1answer
88 views

How can I load << MathWorld`Curves`?

I'd like to recreate in Wolfram Programming Cloud the plot in http://mathworld.wolfram.com/notebooks/SpaceCurves/Slinky.nb How can I load ...
0
votes
2answers
79 views

Plotting (Graphing) a Quadratic Function with Vertex and Roots

I'm new to Mathematica and I'm not really familiar to the Mathematica functions and the language. Could any of you help me plot a quadratic with the following characteristics: vertex at (1.5, 1.75) ...
2
votes
2answers
187 views

Another weird plotting result

I asked a question this morning here, which has been resolved. However, I got another problem. I want to add some lines to the graph, which turns out glitched. The code is as follows, ...
3
votes
1answer
86 views

Formatting ticks of axes to scientific format and modifying the labels [duplicate]

I was trying to plot a function, but had a problem with the tick labels staying close to each other (top plot). DiscretePlot[RmvsB[b], {b, bmin, bmax, bstep}] ...
3
votes
1answer
120 views

Indeterminate expression 0^0 encountered

I'm new in Wolfram Mathematica so the the question may seem quite simple. I define the following function ...
10
votes
3answers
306 views
3
votes
1answer
97 views

How to plot a 2-D function of points which is a function of points from the Unit Circle

Consider the set of points $(x,y)$ such that $x^2+y^2=1$. Consider the functions $f(x,y)$ and $g(x,y)$ and I want to plot the set of 2-D points whose co-ordinates are $\left(f(x,y),g(x,y)\right)$. An ...
0
votes
0answers
43 views

Convergence Problem using FindFit

I have the following input where there is a convergence problem in the FindFit as shown in the attached figure.The figure shows 2 plots: one of the real data and the other of the fitted line. Any ...
1
vote
0answers
22 views

How to update Plot and some output inside NDSolve callback (StepMonitor)

I have the following problem. I am calling NDSolve to solve a system of first order differential equations (nothing fancy), except that the number of equations measures in thousands and the number ...
1
vote
1answer
95 views

Help explain a piece of code [closed]

I am a beginner of mathematica. I don't fully understand the following code from Another weird plotting result. ...