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
276 views

Why the complicated pattern in this 3D plot?

ListPointPlot3D[ Table[{n, s, (Prime[n]^s/(Prime[n]^s - 1))}, {n, 1, 2000}, {s, 2, 80}], PlotRange -> All] Is the pattern the result of the data, the ...
0
votes
0answers
30 views

A problem with functions and Infinite expression 1/0 encountering

Following code (function) makes integrals and then replace f[x] with Cos functions and calculate the definite parametric ...
0
votes
1answer
49 views

A problem with set values

The following code is just an example to clearly explain my problem. Assume that : ...
0
votes
0answers
26 views

draw graphics in cycle

Good evening. I've made the following plot g1 := Plot[f[x], {x, -3, 5}] gr1[f_, xmin_, xmax_, slices_] := Module[{span = (xmax - xmin)/slices, ext}, ext[op_, r_] := First@Quiet@op[{f[x], r ...
1
vote
1answer
39 views

Another one problem with legends on GraphicsGrid

I have used ListLinePlot to generate this grid of plots: and I want to add a legend in Row Layout below this grid. My code, has as follows: ...
1
vote
1answer
114 views

What are these strange shapes in my Plot3D[]?

Plotting a function, I noticed some strange spots away from the main feature, the dark purple here: You can see that they don't actually have any curvature themselves: Strangely, you don't see ...
0
votes
1answer
59 views

Solving System of Nonlinear with Three Differential Equations

I've been trying to solve a system of nonlinear differential equation, but the conditions are a bit weird. Two of the differentials equate to the same equation, but have different boundary ...
0
votes
0answers
28 views

Calculate length of rope sound in a tight spiral [on hold]

Measuring a tightly wound spiral of rubber water tube, can I correctly calculate the
0
votes
0answers
34 views

Why isn't Mathematica plotting my differential equations? [on hold]

So here are my equations eqns = {x'[t] == a*y[t] - b*x[t] + g, y'[t] == c*x[t] - d*y[t] + m, x[0] == 60937, y[0] == 13797}; Then I solved it with ...
0
votes
1answer
63 views

How to work with Interpolating Function?

I'm starting using Mathematica. I have two coupled differential equations and after using NDSolve the output is in the form of a Interpolating Function. I want to Plot the square modulus of one of the ...
2
votes
1answer
84 views

DynamicModule with Plots and EventHandler

I am making a little animation in Mathematica, along the lines of some of the Wolfram demo projects. I'd like to animate a simulated trajectory of a random process (say a Poisson process), and while ...
0
votes
1answer
77 views

combining plots [on hold]

I've made the following plot ...
4
votes
1answer
92 views

How can I prevent a Plot expression from evaluating points forbidden by its RegionFunction?

I just ran into this and it had me scratching my head for a good while. Say I have a function which may produce error messages for certain inputs, like e.g. ...
0
votes
1answer
49 views

How to manually set z-axis values in a 3d plot?

I'm plotting an hemisphere with ...
1
vote
1answer
80 views

Behaviour of OutputResponse in ListLinePlot

Ok, I think this is not the best way to do this, so I'm open minded for every suggestion doing it in a better way. The Question is why does ListLinePlot not plot ...
0
votes
0answers
37 views

How to plot a “pressed” hemisphere [duplicate]

What I'd need is to draw an hemisphere of given radius but then it should have a reduced height. I don't mean a section of an hemisphere, I mean that the hemisphere should be pressed/flattened...so ...
1
vote
2answers
76 views

Getting messages Rest::norest and Divide::indet from ContourPlot3D

Ok I don't know if it's a bug or what, but here's what I found: If I use this function: ...
2
votes
1answer
76 views

Plotting Network with LayeredGraphPlot with specific order

I have a network and want to plot it. I use LayeredGraphPlot, and the network is described as: ...
0
votes
0answers
39 views

3 Lines for the 3D Axes through the origin instead of a Box [on hold]

I'm trying to plot 3D for http://math.stackexchange.com/q/739328/53259: ...
3
votes
0answers
49 views

Export to PDF on OS X, font missing on Windows

Here is another problem with Mathematica plots and PDF. I have Mathematica 9.0.1 on Mac OS X. I want to export my plots to PDF to include them in a LaTeX document. If I export the plot with the ...
0
votes
1answer
93 views

predator prey model with prey refuge

I want to plot the phase diagram of prey predator versus prey refuge to see how the prey refuge influences the population of prey and predator.And this is the system $x'=\alpha ...
2
votes
1answer
73 views

Showing ListLogPlot and redrawing FrameTicks

I want to combine two ListLogPlot plots. For example ...
0
votes
0answers
49 views

Putting a plot legend in the plot [on hold]

I use the code below to put plot legends in the plot: ...
3
votes
2answers
66 views

Interpolation impossible for ListPlot with Missing?

I have a list of data to plot. I would like to plot them with lines but delete some data before plotting and leave the lines disconnected where data is deleted. For example, ...
0
votes
1answer
53 views

marking the points of x-intercept on a plot

OK, I have a nice plot of some oscillating motion. I can read some stuff off the graph, but I thought it would be cool to show a dot where the curve hits the x-axis and a little label showing the ...
0
votes
0answers
36 views

How to plot stacked curves with sharing the horizontal axis [duplicate]

How to plot the curves in the image.
1
vote
2answers
82 views

Parametric 3D plot with parameters satisfying an implicit equation

I am trying to plot a function $ {\bf x}(t) = r(t)\hat{v} + {\bf b}(t) $, with unit vector $ \hat{v} $ and vector $ {\bf b}(t) $ given in spherical coordinates. For simplicity, assume that $ \hat{v} = ...
2
votes
1answer
81 views

Make a “ditch” function for electric field purpose

I'm trying to make a function to simulate a finite bar and get the electric field, i did it by put 22 funnels together but is too slow and is not very accurate; does anyone have any function to ...
0
votes
0answers
26 views

How to add text inbetween two region in 2D plot [closed]

I have been trying to put text in a 2D graph in between two region. I tried this ...
4
votes
2answers
212 views

How to export 3D plot, without losing the specified view of rotation?

Sorry I am not sure if I got anything wrong with this version of Mathematica and Mac OS X i am running. But every time I export a 3D graph, to png or tiff, I lost the view angle, view vector viewpoint ...
2
votes
1answer
105 views

Plot 3D boolean Array or matrix in Mathematica

I have been attempting several methods to plot a 3D diagram of a n by n boolean array in Mathematica but none of them produced satisfactory result. I want the $3D$ plot to have a cube when ...
7
votes
3answers
304 views

1D quasicrystal: points on a line nearest to points on a lattice

I have a simple lattice / line manipulation: ...
3
votes
1answer
45 views

Creating a parallelizable DiscretePlot

To my knowledge, DiscretePlot cannot be parallelized, although one can simulate the default behavior of DiscretePlot and get the ...
0
votes
0answers
88 views
2
votes
2answers
149 views

Plotting a section of an hemisphere

I'm writing a little package in Mathematica for geology where a particular stone may be approximated as an hemisphere. Anyway this is a rough estimation because a real hemisphere has its height as ...
0
votes
1answer
63 views

How to plot particular piecewise defined functions in mathematica

How to plot such functions in Mathematica? Let $a_0, p,g,c$ be any positive integers, defining: $$a_{n+1} = \begin{cases}\frac{a_n}{p} &, a_n \text{ divisible by p}\\ ga_n +c &, a_n \text{ ...
0
votes
1answer
57 views

Problem with Plot and ParametricNDSolve

This is my first question on this site, I hope it is written in an understandable way. Let's start. My aim is to plot a certain parametric region, with $x$ and $y$ coordinates given by the following ...
2
votes
1answer
136 views

How to not include data value outside plot range in the plot

Consider this list plot ls = Table[Sin[t], {t, 0, 100, 0.1}]; p = ListPlot[ls, PlotRange -> {{0., 0.1}, All}, DataRange -> {0, 1}, Joined -> True] If ...
-4
votes
0answers
76 views

plotting 3D function [closed]

I would like to plot the function $Wig[x, p, \alpha, \lambda, \omega, \hbar]$ as a function of $\alpha$ and $\lambda$ but couldn't see the output. Any comments would be greatly app ...
7
votes
3answers
266 views

Smoothing ListContourPlot contours

I have some data of type {{x1, y1, f1}, {x2, y2, f2}, ...} and want to do ListContourPlot. However, there is a problem that the ...
11
votes
4answers
820 views

Plotting Fourier spectrum versus frequency of a signal

I have looked around here, and i am sure this has been answered, but i don't understand it. The thing is, I have taken a introductory signal processing course, and we had to use Mathematica, and i had ...
2
votes
1answer
90 views

PlotLegends and ImageSize

I have Mathematica 9.0.1, and I have problems with PlotLegends breaking the ImageSize directive. I defined ...
1
vote
3answers
94 views

Label Markers On ListPlot

I would like to make a scatter plot where each element corresponds to a certain energy. Each plot marker should have its corresponding element next to it. IE. The data point at -1.16187 should have ...
0
votes
1answer
69 views

Why does evaluating an integral within a Plot expression take so long? [duplicate]

I want to evaluate Plot[Integrate[Sin[((1 + 1/2) x)] (1/(2 Sin[(x/2)]) - 1/x), {x, 0, t}], {t, 0, 5}] but it takes ages to load on Corei3 computer with ...
1
vote
1answer
58 views

Functions defined via inverse Laplace transform - plotting issue [closed]

I need to define a function $k(t,c_1,\alpha_1,c_2,\alpha_2)$ in the following manner: ...
0
votes
0answers
98 views

Another 3D plot question- good and ugly but no bad-

I have the following code with the intention to have a 3D plot: ...
24
votes
2answers
747 views

Sketch-type graphics with transparency and dashed hidden lines?

I'd like to create transparent graphs like the following from P1095, Calculus 6th Ed, by James Stewart. Can Mathematica accomplish this? By "transparent," I mean the ability to see the interior, ...
1
vote
2answers
157 views

How to use ContourPlot3D for Piecewise 3D function

How would I plot in 3D: $\begin{cases} (4 - z^2) = x^2 + y^2, 2 \le z \le 4 \\ x^2 + y^2 = 4, -2 \le z \le 2 \end{cases}$. I tried http://reference.wolfram.com/mathematica/ref/Piecewise.html ...
0
votes
0answers
94 views

How to generate list of 3d points and gradient points from a given 2d function? [closed]

I'm looking for way to generate a list of 3d coordinates and its list of gradient values for each point. Basically I want the output format like X, Y, Z, U, V, W ...