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

learn more… | top users | synonyms (4)

1
vote
1answer
63 views

Plot failing when given a list of functions

I wrote a code which plots a Maclaurin expansion of cos(x) in various degrees. ...
4
votes
2answers
150 views

Mark Minimum Value in DensityPlot

Let's take this example: DensityPlot[Sin[x] Sin[y], {x, -4, 4}, {y, -3, 3}] How do I retrieve the minimum value and position of the minimum of a plot from the ...
3
votes
2answers
278 views

Plot “OilReserves” using CountryData from 1985 until 2014

I am newer using Mathematica to plot with the Function: CountryData, I am trying to plot "OilReserves" in "UnitedKingdom" from 1985 until 2014. I don't know how to do it, please help me!
2
votes
2answers
155 views

Rough mesh lines in partially opaque 3D plots

If I plot a surface with mesh lines, they show up fine (of course). However, if the surface is even just a little transparent, they get quite rough. Compare this to setting the Opacity to 1: ...
3
votes
2answers
147 views

The value of an option inside a native function

I'm looking for something similar to AbsoluteOptions but that can be evaluated inside the function. That is, I want to read the absolute settings of options ...
1
vote
0answers
40 views

Moments Ratio Plot using “ProbabilityDistribution”

I am trying to plot moments ratio plot with the following code: ...
7
votes
1answer
195 views

Why do Tooltips slow down Dynamic so much? Is there a faster alternative?

I'm working on a Dynamic ListPlot with a few thousand plots, and it seems that wrapping the points with Tooltip slows the Dynamic responsiveness substantially. With the simple example below, dragging ...
8
votes
2answers
588 views

How can I plot a loxodrome?

Can someone show me how to plot a rhumb line (loxodrome) in Mathematica via the ParametricPlot function? Here is what I got so far: ...
4
votes
3answers
2k views

How can I plot the complex graph of $x^x$ in Mathematica?

For example, this Wolfram Alpha query shows this graph: But it does not show the code for plotting it in Mathematica. Plot[x^x, {x, -1, 1}] only plots the real ...
1
vote
3answers
3k views

How to plot imaginary part of a function

I need to plot the cube root of x in mathematica, but the plot shows me only the real part. I want it to look like wolframalpha plot with both real and imaginary parts of the function. Is it possible ...
1
vote
1answer
182 views

Vertex labels versus vertex names in VertexRenderingFunction

The VertexRenderingFunction seems to only use names, not labels. For example: ...
2
votes
1answer
179 views

Plotting attributes of vertices in WattsStrogatzGraphDistribution[n, p, k]

I have a graph WS = RandomGraph[WattsStrogatzGraphDistribution[n, p, k]]. I need to plot several characteristics of each v: the ...
3
votes
1answer
177 views

Circular membrane vibration simulation

I'm new in Mathematica and I'm trying to simulate the vibration of a circular membrane for math project but I don't even know how to start. The wave equation describes the displacement of the ...
8
votes
1answer
150 views

Why does GridLines option fail with Function?

The Plot option GridLines can be specified either as a list of explicit values at which to draw the lines, or as a function that ...
0
votes
1answer
161 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 ...
3
votes
2answers
91 views

Plot data as TradingChart

Does anyone know how to make a two data plot such that one of the data samples is showed as the volume transactions in TradingChart function? Thanks. EDIT: Sorry ...
19
votes
1answer
449 views

What is wrong with triangle PlotMarkers in v.10.0.0?

In Mathematica 10.0.0 we have built-in graphical triangle PlotMarkers. Let us look closer on them: ...
38
votes
4answers
2k views

How to visualize 3D fit

I have a data set of x,y,z values and I fit a function of x,y to the data. This works, but I can't come up with a nice way to ...
8
votes
4answers
208 views
0
votes
0answers
33 views

Resources/ best practices for exploratory economic theory work

This is a little general, so I will try to make it as specific as possible. I used Mathematica a fair amount to derive and check analytical solutions to problems in theoretical economics. Lots of ...
1
vote
2answers
228 views

How do I plot the differential of this function?

Suppose I have this function: $$z(x,y) = \left| \frac{ \frac{1}{3x +iy} -2x}{iy + \frac{1}{x}} \right| $$ I want the contour plot of $\frac{\partial z}{\partial x}$ with axes $(x,y)$. Tried this ...
6
votes
0answers
86 views

Behaviour of Plot3D with large numbers [duplicate]

I have a problem with Plot3D. At first I thought it was a problem in general, but while creating a minimal example for posting here, it came out to be a problem with large numbers ...i guess. Let's ...
2
votes
1answer
133 views

How to get a uniformly distributed list of points from a B-spline function

I created a spline function from a list of points and made a plot as follows: ...
3
votes
2answers
168 views

Different MeshStyle for different functions

By using Plot command I want to get one curve in form if circles and other like a solid line. ...
1
vote
3answers
537 views

How do you plot level curves describing a 3d surface on the x-y plane?

I am trying to plot several level curves of the cone: [x=ucos[v], y=usin[v], z=u],[0<=u<=2,0<=v<=2Pi] in the x-y plane. Does anyone know how to do this? Thanks
10
votes
2answers
583 views

What are the standard colors for plots in Mathematica 10? [duplicate]

Mathematica 10 release appears to have changed the default styling of plots: the most visible changes are thicker lines and different default colors. Thus, answers to this stackoverflow question are ...
22
votes
5answers
548 views

How to examine the structure of Graphics objects

One difficulty I'm encountering in studying the structure of Graphics objects is that I have not yet found a way to print or display such structures that are ...
2
votes
3answers
163 views

How to combine a plot with an image

I have an external data file data which contains the position of stars of a galaxy simulations and it looks like this ...
3
votes
0answers
99 views

How does Mathematica identify outliers? [closed]

I don't see anything in the documentation about how Mathematica identifies outliers (in a box plot for example). What definition is being used?
10
votes
3answers
315 views

“Stacked” BarChart with BarOrigin $\to$ Top makes y-tick marks negative

This bug was fixed in version 10.0.0 When BarChart layout is "Stacked", setting ...
0
votes
1answer
79 views

Finding maximum/minimum value of system of inequalites

How would I get the maximum values for x1 and x2 given that I have plotted the region governed by the following system of ...
7
votes
4answers
456 views

Parametric regions

I'm trying to plot $a x^2 + b x + c$ where $a, b, c$ (and $x$) take on a range of values. I tried ...
2
votes
2answers
120 views

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

Note: The bug described in this post is found in Mathematica version 9 and seems to have been fixed in version 10. Ok I don't know if it's a bug or what, but here's what I found: If I use this ...
17
votes
5answers
2k views

Plotting an implicit polar equation

Mathematica can use ContourPlot to draw implicit Cartesian equations, but doesn't seem to have a similar function to plot an implicit polar equation, for example ...
8
votes
1answer
435 views

How do I plot a proper streamline plot, including spacings and line endings?

Mathematica includes two nice built-in tools to visualize vector fields, VectorPlot and StreamPlot. The latter is a useful tool, ...
9
votes
1answer
139 views

PlotMarkers problem in ErrorListPlot, Mathematica 10

I recently upgraded to Mathematica 10, very excited about the multiple undo function of course. However I very quickly noticed that if I specify a setting for ...
1
vote
2answers
71 views

Manipulate is evaluated slowly

I have this function: f[k_, θ_, ϕ_] := Cos[k*Cos[θ]*x + k*Sin[θ]*y - ϕ] I want to change the parameters $\theta, \phi,$ and $k$ to see the effects on the ...
12
votes
3answers
738 views

Why doesn't PlotMarker option None return no PlotMarkers?

After reading the PlotMarkers documentation it seems to be all or nothing. For example if you wanted markers on some of you lines the code below seems ...
4
votes
0answers
97 views

ErrorListLogPlot gives wrong error bars on log scale

From this and this post I learned how to use ErrorListLogPlot and its family to add error bars on top of a list of mean values. However, consider this simple ...
1
vote
1answer
68 views

Plot sets in the complex plane [duplicate]

I just want to know if there's a way to plot sets in the complex plane. For example $$A=\{z\in \mathbb{C},z+e^{z}=0\},\\A=\{z\in \mathbb{C},\Re(z)+e^{z}\geq0\}.$$
5
votes
2answers
51 views

Why does Rotate in PlotMarkers behave strangely?

While answering Change the inner color of markers I came across a behavior that may be a bug. I would like to know if there is another explanation. First a basic example of normal behavior: ...
3
votes
1answer
51 views

How to make PlotMarkers constructed from Graphics track plot style?

In this plot the Disk[] markers are not colored according to the style of the line to which they belong: ...
11
votes
3answers
479 views

Change the inner color of markers

I would like to have a marker with white as its inner color, to be able to make this kind of graph: If I use PlotMarkers -> Style["\[FilledSquare]", White], ...
4
votes
2answers
52 views

How can I make DensityHistogram obey the lower bound in PlotRange in version 10?

In version 9, DensityHistogram worked with PlotRange as expected: ...
1
vote
1answer
79 views

ListPlot with conditions

I have a data file containing the position of about $10^5$ stars of a spiral galaxy. Here is the plot and this is the corresponding code ...
3
votes
2answers
126 views

Fourier Analysis: How to get rid of a discontinuity

When I compute the phase error of a spatial series data using Fourier analysis in Mathematica there's a discontinuity @ parameter ...
5
votes
1answer
105 views

How to plot stability region of Fourier analysis

Stability limits for Runge–Kutta methods in the complex ΩΔt-plane are needed to be plotted like this: For example, let P=1+z where ...
0
votes
2answers
100 views

How can I graph an equation with five variables?

{c*((a - b*Cot θ)/(Subscript[r, 1])^4) + ((b*Csc θ)/(Subscript[r, 2])^4) This is a form of Poiseuille's Law I need to graph. I want the value of the variables to ...
3
votes
0answers
64 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
1answer
82 views

Plot groups based on unique tag

I have a .csv file that has 12 columns and 511 rows. data = Import["C:\\Users\\Documents\\data\\AllResults\\result1.csv"]; The first two columns are id tags. I ...