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

learn more… | top users | synonyms (12)

1
vote
0answers
68 views

Binding a variable to an unbound variable [closed]

I'm trying to do something like the following: (minimal example, f2 unbound) ...
6
votes
1answer
135 views

Plotting issue — possible bug?

Issue: a plot that previously worked in version 10.1 (see first figure below) produced an odd looking graph when re-evaluated in version 10.2 (see second graph). I have downloaded the latest version, ...
0
votes
2answers
120 views

Strange behavior of Plot over a domain containing very large x-values

When I plot a function of (1 + 1/n)^n,There you can see: Plot[{(1 + 1/n)^n, E}, {n, 1, 10^13}] When I add a option of ...
0
votes
0answers
184 views

Mathematica can't plot at specific range?

Intentional pseudo-Bug (Thing) introduced in version 1.0 and persisting through 10.3 I hope that development team fix this issue, will improve in a future release. I have a function that I ...
1
vote
0answers
99 views

ContourPlot3D in cylindrical coordinates [closed]

My function x=x(k,phi) is defined implicetly: h3(x,k,phi)==0. Function h3 is defined through ...
8
votes
1answer
97 views

Exported graphics have issues with word wrapping

I am trying to export a plot as an image. My actual plot uses Show to combine a ListPlot and several Plots, with a common legend. The code below is a dummy version that produces the same problem: <...
3
votes
2answers
256 views

gradient 2D-plot

We have the bellow plot: Plot[Sin[2 x]^2 Cos[1/2 x]^2, {x, 0, 2 \[Pi]}, PlotStyle -> {{Thickness[0.008], AbsoluteDashing[{15, 4, 4, 5}]}}] The desired case ...
5
votes
1answer
94 views

Radial range in polar plot

I'm trying to make a polar plot. The radial range (radius of the circle) is automatically set at 1.2. I want to change this to 1. My code is: ...
5
votes
3answers
98 views

How to ignore year in DateListPlot

I just upgraded to Mathematica 10, and I am trying to get the hang of the new TimeSeries data objects, which are preventing my old strategy of overlaying data from ...
9
votes
1answer
160 views

Coloring spiral structures

In a previous question Original post @Julian S. proposed a method for coloring spiral structures. However this method works well only if the two spirals do not merge together. For example, for these ...
2
votes
1answer
110 views

How to plot a figure according to two equations?

There are two equations like this: $a=f(x,y)$ and $z=g(x,y)$, where $a$ is a constant. In principle, one can solve $a=f(x,y)$ for $y$ as $y=k(x)$ and substitute it into the second equation to obtain $...
0
votes
0answers
56 views

How to delete part of a constant plot?

I have a plot that looks like this: and what bothers me is that the center straight line is that long. The plot would look a lot better if I were somehow able to delete everything from -3 to 3. Is ...
5
votes
1answer
107 views

Hatching pattern in ColorRules for MatrixPlot

Using ColorRules with MatrixPlot, how does one get a hatching pattern in one of the cells? For example, consider the ...
2
votes
2answers
91 views

Plotting cones from data read from a file

I would like to plot cones centered at specific points in a lattice and with different orientations and colors that depend on them. For this, I have the data in an external file with 11 columns: 1) ...
15
votes
0answers
186 views

ListContourPlot and ListContourPlot3D use better interpolation for arrays of values than for lists of tuples (i.e. {{x,y,z,f[x,y,z]}..}

From reading the documentation, it seems that ListContourPlot3D should work equally well on an array versus a list of tuples, ?ListContourPlot3D ...
2
votes
0answers
52 views

Mathematica Manipulate, Plot, Piecewise [duplicate]

I have two functions h2 and v2 that I need to graph using Piecewise and be able to ...
1
vote
0answers
27 views

How to label the points in `ListPointPlot3D` [duplicate]

To label 2D point plot is easy, eg ListPlot[Labeled[#[[1]], #[[2]]] & /@ {{1, 1} -> 1, {6, 5} -> 2, {4, 1} -> 3}, AspectRatio -> Automatic] ...
1
vote
0answers
98 views

Theodorus Spiral [closed]

If the successive hypotenuses of the Theodorus Spiral are getting longer but the difference between the lengths is getting smaller reducing the distance between windings to pi, why pi?
2
votes
3answers
71 views

Dual plot not working [closed]

I'm trying to plot the figure-eight curve. g1 = Plot[y = Sqrt[x^2 - x^4], {x, -1, 1}] g2 = Plot[y = -Sqrt[x^2 - x^4], {x, -1, 1}] Show[g1, g2 ] ...
1
vote
1answer
74 views

Plot discontinuous function $\frac{2-x}{|x-2|}(x + 2)$ [duplicate]

I'd like to ask you about the way to plot discontinuous function $\frac{2-x}{|x-2|}(x + 2)$. What Wolfram Alpha produces: "DIY" version is below. How to achieve similar effect in Mathematica?
5
votes
1answer
91 views

Remove Tick Marks without removing Numbers on Paired Histogram

I have formatting problem that I can't figure out. I'm trying to remove the tick marks on a paired histogram without removing the numbers. The trick with other plots is to make the opacity of the ...
3
votes
1answer
126 views

Efficiently generating plots from lists of differing lengths

I guess this is more of an informatic question. A quite complicated function of mine generates me a list of valid points, depending on a parameter, like this: ...
3
votes
1answer
118 views

Mathematica freezes at 3DPlot

I am using Mathematica 10.1. Mathematica constantly freezes on the first or the second attempt to display a 3D Graphic (Plot3D, ListPlot3D, Show..). Here's a simple example ...
2
votes
1answer
57 views

Issue with plotting function

I can't seem to work out why nothing is showing when I try to plot h[t] in the example below: ...
1
vote
1answer
164 views

How can I plot legends on only some of my curves that all plotted together?

I am using ListPlot to plot many lines in the same graph. I want to put in a legend but only for a subset of these lines. For example ...
7
votes
3answers
221 views

ListPlot will not color markers in accordance with my color function

I have the following color table: colTable = {{Black}, Table[{Blend[{Blue, Green, Yellow, Red}, x]}, {x, 1/2000, 1, 1/2000}]}; colTable = Flatten[colTable]; ...
2
votes
2answers
58 views

Misplaced Automatic in output of ContourPlot3D [closed]

The following gives an error when displayed in the front end: cp = ContourPlot3D[x, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}, Contours -> {{0.}}] There is an ...
9
votes
0answers
110 views

ListDensityPlot3D does not antialias axes

I sent a bug-report to Wolfram and the case number is [CASE:3454878] I'm on Linux with Mathematica 10.3 and I have my 3D graphics output set to the highest "Antialiasing Quality". It works fine for ...
3
votes
1answer
62 views

ListDensityPlot3D result in saved notebook doesn't show correctly

Consider this example in the documentation of ListDensityPlot3D: ...
9
votes
1answer
103 views

ListPlot3D: combine VertexColors and RegionFunction

I've found that RegionFunction and VertexColors don't work together. Example: ...
1
vote
0answers
136 views

How to plot two y axis? or combine(merge) two plots? Should handle faceted column as well [closed]

I've a combination of two difficult (I'm naive) requirements :( Consider the Weather data as example. Let's say I've dataset with following information. "Datetime"...
-2
votes
1answer
110 views

Why does this ContourPlot3D give a faulty plot?

Why in Wolfram Development Platform does this: ContourPlot3D[Abs[x^2 + y^2 + z^2 -1]==0.2, {x, -2, 2}, {y, -2, 2}, {z, -2, 2},PlotPoints->8] give a faulty ...
0
votes
0answers
24 views

change markers to arrows using ListLinePlot [duplicate]

I'm trying to plot temporal data using ListLinePlot, where the first entry is the first point in time, second entry is next point in time, and so on. I'd like to replace the markers with arrows, in ...
0
votes
1answer
97 views
0
votes
0answers
22 views

use of grid to stick different plots [duplicate]

I have four plots that can be figured besides each other in Grid command. ...
0
votes
2answers
132 views

plotting vertical lines in ListLinePlot

I have a list such as here: list1 = {{-(5/4), 3}, {-(3/4), 2}, {1/4, 6}, {3/4, 5}}; My desire is to have a plot similar to (just in shape not in data) however ...
9
votes
3answers
503 views

Circular domain for Plot3D

Mathematica's Plot3D works with rectangular domains. In other words, we write: Plot3D[Function, {x,a,b}, {y,c,d}] Here the ...
2
votes
1answer
50 views

Plot a function that gives a color [duplicate]

I have a function that takes in two numbers and returns a RGB color. I would like to plot that function on a 2D surface. How can I do that?
1
vote
0answers
33 views

Plotting the outline of a 3D shape [duplicate]

Is there anyway to make a 3D plot that's only the outline or silhouette of the plot, without all the lighting, shadow, etc? For example, if I were to plot a hyperboloid, I would want something like ...
11
votes
2answers
357 views

How to add arrows in the middle of the Plot-lines

If I got a bunch of numbers,then I can plot it with ListPlot: {{1, 2}, {3, 9}, {7, 4}, {9, 9}} ListPlot[%, Joined -> True] ...
10
votes
1answer
163 views

Plot3D with Piecewise is Empty [duplicate]

I don't understand what has happened here. Please can someone explain? I start by defining a 2D function and plotting a couple of cases ...
3
votes
2answers
160 views

How to add Thickness in ListContourPlot3D

How do you add a thickness to ListContourPlot3D. Extrusion works with ContourPlot3D, but ...
1
vote
0answers
32 views

Piecewise function plots weird when given expression with symbol vs writing it explicitly [duplicate]

The only difference is that in the second snippet the expression is written out explicitly. displacement = (Sin[x - Pi/2 - t] + 1)/2 This doesn't work: ...
0
votes
0answers
81 views

A parabola by three points. Interpolation and Plotting [duplicate]

I would like to plot this simple line graph and generate a polynomial equation using Mathematica. Please help values ...
2
votes
3answers
179 views

Calculate and plot the tangent hyperplane to a function of three variables

If f:= x^3 + y*x*z - z^2 + x*z and if {{1,2,1},{2,7,8},{6,0,2},{9,1,1}} are points, how can I find the tangent plane to <...
4
votes
0answers
89 views

List(Log)Plot with “high” resolution results in various warnings, e.g. BinCounts::step

Here is some very odd behavior from ListLogPlot. So if I want to plot a function using LogPlot, I can specify the ...
1
vote
0answers
81 views

Mathematica in Action (Wagon) — code to generate a great circle is giving error [closed]

I have code from Stan Wagon's Mathematica in Action, Chapter 17 (Great Circle Problem), but when I try to run it, it does not work. I have Mathematica 10. The code that does not run is shown below. Do ...
0
votes
1answer
103 views

RegionPlot: Incorrect Results

I have a simple function and I tried to simulate whether the resulting values are positive/negative/zero (all I want to know). I plotted the function with a set of parametric assumptions and the ...
2
votes
1answer
102 views

Change Orientation of List Plot Y Axis

i have some c++ output (just two coordinates of one point on each line in a a .csv file) that i want to evaluate using Mathematica. those points correspond to matrix elements. so i want my ...
2
votes
1answer
49 views

ndsolve interpolatingfunctions not shown/evaluated

Using this technique from Simon, I want to solve a matrix differential equation with a matrix that contains an explicit time-dependence(our variable), but I want to be able to solve this problem for a ...