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

learn more… | top users | synonyms (11)

2
votes
1answer
113 views

Displaying on a Smartboard [closed]

I got a very nice answer on Region bounded by x^2+y^2=1, y=z, x=0, z=0, in first octant, using this code: ...
2
votes
1answer
96 views

making 3d listplot smoother? [closed]

This is a continuation of my previous two questions: this one and this one. I would like to plot the following function $$ p(x,t) = \frac{e^{-1/A}}{A}\sum_{i=1}^{500}e^{c_i\, t}m_i(x)\frac{z_i}{w_i}, ...
9
votes
4answers
768 views

How many times do the two given curves intersect at the origin?

I'm reading/studying on my own a book about algebraic curves. I'm trying to find a way for Mathematica help me with the following (the book, ISBN: 038731802X, allows me to use any CAS / program. ...
0
votes
2answers
117 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 ...
2
votes
1answer
157 views

LogPlot hangs but Plot does not

This is a bit involved example, but I have not been able to reproduce it in more simple cases. ...
0
votes
2answers
74 views

Plotting a list against a list [duplicate]

l1={1,2,3,4} l2={5,6,7,8} I want to plot the l2 against l1. that is at value ...
6
votes
1answer
132 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, ...
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) ...
5
votes
3answers
704 views

How can I draw a hyperboloid given its generatrix?

I want to see how a hyperboloid of revolution is generated by its generatrix, i.e. by rotating one (say the one passing point $(1,0,0)$ and $(0,1,1)$) of the skew lines around another (say the z ...
-2
votes
1answer
36 views

Plotting a function with Exponential, Trigonometric functions [closed]

I didn't manage to plot the following function : f[x_] := Exp[2*x] - Log[e + x]/(x^3 + Sin[x]*Cos[x]) Plot[f[x], {x, -10, 10}] Can you help me to correct my code ...
0
votes
0answers
167 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 ...
9
votes
1answer
153 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 ...
1
vote
0answers
88 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 ...
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 ...
6
votes
1answer
66 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
244 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 ...
2
votes
1answer
85 views

Problems with multidimensional system of ODEs

I am trying to look at the migration of "i" number of species "c" in "10" number of habitats {designated as "j"} and to study their population size as a function of time "t". I have this following ...
5
votes
1answer
86 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
89 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
797 views

Plot The Cornu Parametric Spiral

How do I plot the Cornu parametric spiral in 3D with Mathematica. The 2D is quite easy. For more details, you need to be familiar with the Cornu statement. $$\begin{cases} ...
4
votes
1answer
139 views

DateListPlot in webMathematica doesn't show FrameTicks properly

It seems that DateListPlot when used in webMathematica (3.3.1) show different output than in desktop Mathematica (10.1). In desktop Mathematica, if you evalutate ...
0
votes
0answers
53 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 ...
2
votes
2answers
293 views

Highlighting a single Period of a Trig Plot

How do I highlight a single period of a trig function say by using color and/or thickness when the graph itself extends further than just a single period? Thanks...Gregory Lane
9
votes
1answer
255 views

A method to draw a surface around a set of regularly spaced points

This is mostly an artistic endeavour. I have a 3D array of points, 1 representing a point within the surface, -1 without. The shape is not convex. I would like to produce a surface which encloses the ...
1
vote
1answer
536 views

ListPlot and ColorFunction [duplicate]

I've been searching for the use of ColorFunction as an Option for ListPlot, but haven't found anything about it in the documentation. When trying the code ...
9
votes
0answers
104 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 ...
5
votes
1answer
100 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 ...
3
votes
1answer
124 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: ...
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
24 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
91 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
70 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 ] ...
5
votes
1answer
88 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 ...
6
votes
1answer
170 views

How can temporal data with multiple paths be shown in one plot?

I am trying to plot SunPosition for an entire year. The examples I have seen plot a single day or one exact time across the entire year, not the full data set. ...
1
vote
1answer
72 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?
12
votes
5answers
11k views

Calling Correct Function for Plotting DiracDelta

I am wondering what is the correct function in Mathematica to plot the true impulse function, better known as the DiracDelta[] function. When using this inside of a ...
-2
votes
2answers
165 views

Plotting self-made functions [closed]

EDITED AS SUGGESTED I have defined a function, which takes two values and returns a function n(x), like so ...
6
votes
3answers
206 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]; ...
6
votes
6answers
776 views

Sort list by day names (Monday, Tuesday, etc)

I have some dates in a list, and I want to plot how many of those dates are Monday, Tuesday, etc. I'm using this: data = {...} Tally[DayOfWeek /@ data] and I ...
2
votes
1answer
53 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
123 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 ...
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 ...
18
votes
3answers
8k views

Is there a way to make the tick marks larger?

In a Plot (actually, a Graphics) command, I'd like to make the actual tick marks larger than they are, but I can't find an ...
9
votes
1answer
92 views

ListPlot3D: combine VertexColors and RegionFunction

I've found that RegionFunction and VertexColors don't work together. Example: ...
5
votes
1answer
433 views

Can BoxWhiskerChart show both the median and outliers at the same time?

Is there an easy way to make BoxWhiskerChart show both the outliers and the median line? g1 below shows outliers but not the ...
3
votes
1answer
57 views

ListDensityPlot3D result in saved notebook doesn't show correctly

Consider this example in the documentation of ListDensityPlot3D: ...
-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 ...
1
vote
0answers
116 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. ...