Questions tagged [plotting]

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

1,006 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
123 views

Force exact number of streamlines in StreamPlot

The StreamPlot command has an option for the number of StreamPoints. When I try the first it does not appear to allow you to choose anything other than $10$ (for ...
3
votes
0answers
33 views

Long title in pdf export resizes the plot

When using GraphicsGrid to make multiple plots, if one plot has a longer title, the sizing gets messed up when the image is exported to pdf. Below is a massively simplified example code, ...
3
votes
0answers
226 views

When does a good graphics card help in Mathematica

I've got an NVIDIA GTX 960 and 32G RAM on my desktop. I was just wondering if it really does any benifit to the usage of Mathematica compared with some integrated card in high-end intel chips. I ...
3
votes
0answers
94 views

Replicate effect of FrameTicks->All manually

I need a way to get the absolute tick specifications in the form of list of position/label pairs, and have not been able to come up with a robust way. For the following, I'll be using this test plot: ...
3
votes
0answers
71 views

FeatureSpacePlot freaks out with LatentSemanticAnalysis on words

I'm playing with FeatureSpacePlot on a collection of words: ...
3
votes
0answers
111 views

Why a simple Plot on Raspberry Pi 3 with Mathematica takes 20 seconds?

I'm with ssh -X raspberrypi logged in. So $DISPLAY points to a X-Server. I use a very simple script file ...
3
votes
3answers
584 views

Plot a specific branch of a multi-valued complex function

Let's say I want to plot a branch of the following function $f(z) = \sqrt{z(z-1)}$. Let $z = r_1 e^{i\theta_1}$ and $z-1 = r_2 e^{i\theta_2}$. How can I tell Mathematica to plot the branch for which $...
3
votes
0answers
73 views

Why does this SphericalPlot3D instance seem defective?

Why is the vertical line circled in red discontinuous?
3
votes
0answers
51 views

`ListPlot` points and axes not aligned correctly

The points and axes in ListPlot are sometimes noticeably offset. I have a minimal working example which is pretty dang minimal: ...
3
votes
0answers
346 views

Exporting a graphic with Legend

I have been trying to export an image (not the image below) with a legend to a pdf format for a publication (Mathematica 11.0.1). Unfortunately everything I have tried exports a version of the graphic ...
3
votes
0answers
372 views

Common legend for two density plots

I have two different density maps, one of them is made by DensityPlot and the another one is made by ListDensityPlot. I would ...
3
votes
0answers
82 views

3DPlot gluing several tubes

How can I use Mathematica to plot the 3D figures like the following one and its generalizations to gluing multiple tubes in a nice way. The lines and labels on the tubes are irrelevant. If it is ...
3
votes
0answers
86 views

How to make BoundaryDiscretizeRegion work for a RegionUnion of polygons?

This question is related to this one. I want to display the RegionUnion of a large set of smaller polygons. If simply use Region ...
3
votes
0answers
191 views

Why is my parallel version of `DensityPlot` slow?

I am exploiting the possibility to parallelize DensityPlot. This is my naive implementation ...
3
votes
0answers
109 views

create geolabels with date-objects

I want to create a GeoGraphics with customised labels. The example dataset is: ...
3
votes
0answers
373 views

Directions of arrows in a phase diagram

I have a four dimensional dynamic system that I try to solve in Mathematica. I use the following code ; ...
3
votes
0answers
58 views

Is ChromaticityPlot3D bugged in V11 with regard to FillingStyle?

On Mac OSX 10.10.5, a large number of the examples for ChromaticityPlot3D do not appear as expected including: Opacity in FillingStyle: ...
3
votes
0answers
230 views

How to find equidistant colors in different colorspaces?

I can find equidistant colors in the LAB colorspace. Since, it is complicated, I first calculated the values of a and b for equidistant points on the AB plane and incremented the L values gradually ...
3
votes
0answers
110 views

Plotting deformed disks

I have a list containing the x and y coordinates and the radius of different circles, with some of them overlapping. I wish to plot the circles in this list. However, the overlapping circles should '...
3
votes
0answers
158 views

Plot3D Color Bug with Large Inputs

Bug introduced in 11.0 and persisting through 11.1 Running the code: ...
3
votes
0answers
178 views

How to detect discontinuous point in a symbolic function?

Mathematica Plot function can detect exclusion points automatically. How was that realized? How can I generalize that to included discontinuity of ...
3
votes
0answers
149 views

How to add the second z-axis in Graphics3D

In 2D plot, to add the second y-axis, the Overlay function is useful. But I want to see the second z-axis in the Graphics3D. Here is my code. ...
3
votes
0answers
76 views

Why doesn't option CoordinatesToolsOptions have any effect?

Bug introduced in 11.0.0 and persisting through 11.0.1 or later I copied the code below from http://reference.wolfram.com/language/ref/CoordinatesToolOptions.html ...
3
votes
0answers
219 views

Least squares approximation

I have data points which is mydata = {{0, 0}, {1, 1}, {2, 0}}; From this data, I need to do the least squares approximation by using Bernstein polynomials to produce a set of Bezier points. Before ...
3
votes
0answers
190 views

Venn Diagrams: Disc size proportional to cardinality of the set

Background Before beginning of my specific question I am stating that I have read the plotting - How to plot Venn diagrams with Mathematica, post. In short what I want to achieve is a generalized ...
3
votes
0answers
123 views

Interpolate a 3D surface in 3D

We have taken measurements on a cylindrical flexible item. At each of the measurement locations we have an oscillating motion which is described in terms of three orthogonal directions. The ...
3
votes
0answers
621 views

Integration error from Plot3D

I am trying to visualize diffusion distribution from an equilateral triangle with 45 degrees. Assuming that diffusion is a Gaussian with sigma=1 this should do: <...
3
votes
0answers
133 views

Removing plot artifacts (SphericalPlot3D)

Using SphericalPlot3D, I find I get two types of artifact: A discontinuity in the surface reflectance at $\theta=0,2\pi$ Little edges, or perhaps gaps between ...
3
votes
0answers
795 views

Making a histogram with a log scale

Sorry for my poor english. I am really new in Mathematica. I have a data set and plot it in histogram, The whole script is following: ...
3
votes
0answers
109 views

TransformedRegion and RegionPlot

I encountered an issue using RegionPlot together with rotated regions. Notice how as long as one drags a slider in this simple ...
3
votes
0answers
54 views

How does ContourDetect work for arrays?

By the Wolfram Documentation, ContourDetect gives a binary sparse array in which 1 corresponds to zeros and zero crossings in an array. However, in the example: ...
3
votes
0answers
52 views

JournalArticle does not react on the PointSize option

The Default StyleSheet recognizes the PointSize option for ListPlot: ...
3
votes
0answers
82 views

Optimization for iterating and plotting a matrix product and its elements?

I have an iterative matrix product of this type $$ \begin{pmatrix}y_{n+1} \\ x_{n+1} \end{pmatrix} = \begin{pmatrix} A & B \\ C & D \end{pmatrix} \begin{pmatrix}y_{n} \\ x_{n} \end{pmatrix} $...
3
votes
0answers
194 views

vector graphics of a ListPlot3D

My problem is quite simple and yet I can't seem to find a solution to it. I'm trying to create a figure in vector format but if I export it to EPS I get a very bad gradient in the colors. If I export ...
3
votes
0answers
139 views

SliceDensityPlot3D not found

Bug introduced in 10.2 or earlier and fixed in 10.3.0 I am using Mathematica student edition, version 10.2. When I use the command ...
3
votes
0answers
108 views

Bug when using Plot3D over an ImplicitRegion?

Evaluating this expression seems to cause Mathematica to beep and quit the kernel: ...
3
votes
0answers
459 views

Function with a sharp resonance which Mathematica fails to integrate. Why?

I'm a new user of Mathematica and I'm trying to use it to calculate the collisional cross-section as a function of energy for a given potential and decay rate. I know that the resulting function ...
3
votes
0answers
159 views

Does the VerticalCallout algorithm in PieChart work correctly?

This manufactured example is typical of many real world cases where we have thin slices of the pie: ...
3
votes
0answers
226 views

Is there a relatively easy way to add the “Cone of Influence” to a waveletscalogram?

I am analyzing time series data using the ContinousWaveletTransform function and plotting the results with WaveletScalogram. I ...
3
votes
0answers
2k views

Calculating the mean curvature of a surface - suggestions

I am attempting to calculate the mean curvature [1, 2] of a surface defined by a function of x and y. My function is rather ...
2
votes
0answers
35 views

Extract original vertex from VoronoiMesh

Consider a set of random coordinates. pts = SortBy[RandomReal[{-1, 1}, {25, 2}], {First, Last}]; and find it's VoronoiMesh, <...
2
votes
1answer
57 views

Plotting (y/b) vs. (a/b) for a function y = f(a,b)

If I have the function y = a + a b + b, how do I make a plot of y/b vs. a/b for ...
2
votes
0answers
45 views

What is the right way to use the option PlotLegends and “Expressions”

How do I plot the graph of x^2,x^4, in the same graph for x in [-5,5]. ...
2
votes
1answer
64 views

Segmenting a binary image into three parts

I am trying to segment a binary image into three parts, head, body, and tail. The binary image is a stack of tiff files of a moving fruit fly larvae. I was able to do this initially by removing points ...
2
votes
0answers
60 views

How to derive a 3D interpolated surface?

I want to derive a surface I interpolated which lies in 3D. However my use of Derivative does not seem to work and I don't understand why. What I want is to calculate and plot the derivative of this ...
2
votes
0answers
94 views

Speeding up NIntegrate and DensityPlot

I'm making a density plot of a spectral function Sfull[kx, ky, kz, Ω] along a specified path in {kx,ky,kz}-space. The plot looks ...
2
votes
0answers
49 views

White lines in Plot3D and exclusions in documentation

I am aware that this issue has come up before in a number of posts. However, my question is a little different and as far as I can see not answered previously. If I run the following code taken ...
2
votes
0answers
34 views

ListContourPlot and ListPlot3D return empty (white) plots when scaled

using Mathematica 11.1.1.0. I could not find this topic before. Look at these simple data plots: ...
2
votes
0answers
46 views

StreamPlot is not working

After finding the gradient of the scalar field F(x,y)= (x^2 * y^2) + (y^2 * z^2) + (x^2 * z^2) I am trying to get its direction field with StreamPlot which is showing an empty box. I did: ...
2
votes
1answer
43 views

axis values for custom points in listplot

Let's say I have a listplot like so: ListPlot[Prime[Range[25]]] I want my plot to mark the x,y values for the values associated with say, the 5th, and 10th points ...

1 2
3
4 5
21