Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 3056

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

5 votes

How to do make Plot automatically figure out a domain interval?

se.mathworks.com/help/matlab/ref/ezplot.html: ezplot(fun) plots the expression fun(x) over the default domain -2π < x < 2π, where fun(x) is an explicit function of only x. (... and pretty much t …
kirma's user avatar
  • 19.1k
11 votes

How can I combine two plots?

Combine Plots with Show, and remember to use PlotRange -> All: Show[ Plot[x, {x, 0, 1}, PlotStyle -> Blue], Plot[x^2, {x, 1, 2}, PlotStyle -> Red], PlotRange -> All] Another option, as Karsten …
kirma's user avatar
  • 19.1k
2 votes

How to plot two random functions (Together)

I'm not quite following your question, but are you possibly looking for this? Pp = TransformedProcess[{g[t] E^(j[t]), j[t]}, {g \[Distributed] GeometricBrownianMotionProcess[v, \[Sigma], 1], …
kirma's user avatar
  • 19.1k
4 votes

Mathematica equivalent to gnuplot's fsteps option?

Fresh v10.2 introduces ListStepPlot which provides just the right facility for this task: pts = {{1.81515, 1.46912}, {4.99276, 1.87137}, {9.12065, 6.83238}, {9.9288, 5.30858}, {5.6387, 4.30558}, …
kirma's user avatar
  • 19.1k
9 votes
Accepted

Is there a way to find the values of x for a graph in a given area?

Use Reduce to get the region as inequalities: f[x_] := Sin[4 x] + x; Reduce[-1 <= f[x] <= 1, x, Reals] (* Root[{1 + Sin[4 #1] + #1 &, -1.45320652256538767403}] <= x <= Root[{1 + Sin[4 #1] + #1 &, …
kirma's user avatar
  • 19.1k
1 vote
Accepted

Rotate curve around x axis

I'm not entirely certain if this is a particularly useful approach to the problem hidden behind your question, but this should help while maintaining the form: RevolutionPlot3D[Sign[x] Sqrt[4 - x^2], …
kirma's user avatar
  • 19.1k
2 votes
0 answers
277 views

How to Plot with non-orthogonal axes?

Sometimes I would want to Plot simple functions on unconventional projection, but without specifying all the styling myself. If one looks at InputForm of a normal plot, all this would appear to be dee …
kirma's user avatar
  • 19.1k
7 votes
Accepted

Tick labels are chopped in PolarPlot output

Looks like a bug to me. Nonetheless, you can add padding to it: PolarPlot[1, {t, -Pi, Pi}, PolarAxes -> {True, False}, PolarTicks -> {"Degrees", Automatic}, PolarGridLines -> {True, False}, PlotRa …
kirma's user avatar
  • 19.1k
9 votes
Accepted

I want an image like the following image. (Question about Plot)

A quick hack: n = 10; f[x_] := Sin[x]; rectangles[f_, a_, b_, n_] := {Opacity[0.0], Blue, EdgeForm[Black], N@Table[Rectangle[{a + k (b - a)/n, 0}, {a + (k + 1) (b - a)/n, f[a + k (b - a)/n …
kirma's user avatar
  • 19.1k
17 votes
Accepted

How to plot Clebsch surface with those 27 lines?

EDIT: With help from @cvgmt, both fixing a wrong term in the equation(!) and adding constraints for finding lines: With[{expr = 1 + 54 x y z - 9 (x + y + z) + 126 (x y + x z + y z) - 9 (x^2 + …
kirma's user avatar
  • 19.1k
7 votes
Accepted

How to display several things inside graphic?

Add all the items you want in the Epilog to it as a list: data3 = Table[{x, x^2 + 2}, {x, 0, 5}]; Show[Plot[x^2, {x, 0, 5}, PlotRange -> All], ListPlot[data3, PlotStyle -> Red], ImageSize -> Large, …
kirma's user avatar
  • 19.1k
11 votes
Accepted

Putting ticks with values on a parametric plot

Partially based on Chris Degnen's answer, and all that predates it: F[k_, x_, y_, z_, w_] = (-1)^(z + w - 1) ((2 x + 1) (2 y + 1) (2 w + 1) (2 k + 1))^(0.5) ThreeJSymbol[ {x, 1}, {y, -1}, {k, …
kirma's user avatar
  • 19.1k
18 votes

Plotting an epicycloid

It is easiest to use ParametricPlot and RotationTransform. ParametricPlot[ RotationTransform[a][{1, 0}] + RotationTransform[4 a][{1/4, 0}], {a, 0, 2 Pi}, Evaluated -> True] Evaluated -> T …
kirma's user avatar
  • 19.1k
52 votes
Accepted

How to plot a certain surface? What is its parametric equation?

Consider this: ParametricPlot3D[ RotationTransform[a, {0, 1, 0}][{0, 0, Sin[3 a] + 5/4}], {a, 0, 2 Pi}, Evaluated -> True] Now rotate this around a circle, while rotating it at the same ti …
kirma's user avatar
  • 19.1k
4 votes
Accepted

Plotting 3D Intersections

Considering your GPS-inspired goal, here's an approach which visualizes a least-squares solution to distances from sphere shells, and the corrected standard deviation as size of the red sphere: Modul …
kirma's user avatar
  • 19.1k

15 30 50 per page