Questions tagged [plotting]

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

952 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
3answers
555 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
50 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
335 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
340 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
104 views

create geolabels with date-objects

I want to create a GeoGraphics with customised labels. The example dataset is: ...
3
votes
0answers
363 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
220 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
107 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
151 views

Plot3D Color Bug with Large Inputs

Bug introduced in 11.0 and persisting through 11.1 Running the code: ...
3
votes
0answers
172 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
142 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
211 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
186 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
115 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
611 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
124 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
768 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
50 views

JournalArticle does not react on the PointSize option

The Default StyleSheet recognizes the PointSize option for ListPlot: ...
3
votes
0answers
81 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
184 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
138 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
451 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
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
82 views

How do I create a piecewise function using Do[] or While[]?

The following non-linear circuit is an uncontrolled three-phase full-wave 6-pulse rectifier. The inputs are $v_{an}(t) = V_m \sin (\omega t)$, $v_{bn}(t) = V_m \sin (\omega t-120°)$ and $v_{cn}(t) = ...
2
votes
0answers
37 views
2
votes
1answer
69 views

how to plot a 3D graph of a difficult trascendental equation?

i need to create this plot from an article, using this equation where and here rho2/rho0 is kept = 2, c2= 0.7c0, va= 0.4c0 and c1 vary such that this equation is satisfied i am very confused ...
2
votes
0answers
25 views

Why is the graph truncated?

I printed the graph as follows, but part of it is cut off. ...
2
votes
0answers
45 views

Removing polygons from exported RegionPlot

I have the following code that runs a RegionPlot ...
2
votes
0answers
86 views

How to plot multicolor phase diagram with three parameters?

I am trying to plot like the diagram given above. I have two nonlinear equations that I have separated in imaginary and complex forms (u1,v1, and x1,y1). As shown in the figure in the x-axis I want '...
2
votes
0answers
42 views

How to Plot with non-orthogonal axes?

Sometimes I would want to Plot simple functions on unconventional projection, but without specifying all the styling myself. If one looks at ...
2
votes
0answers
109 views

Plotting from the celebrated Euler's formula

ContourPlot[ x^(I*y) == -1, { x, 1, 3}, {y, 1, 3}] A newbie's query..The most famous equation should ( methinks) yield a lot of points other than the real pair $(...
2
votes
0answers
27 views

Returning properties of plot

How can I find out the DefaultStyle of Axes, Frames, PlotRangeClipping of Plot, DensityPlot, etc. and can I manipulate them?
2
votes
1answer
31 views

Markers not inline with error bars

The ErrorListPlot function in the ErrorBarPlots package displays markers left of the error bars. What is and how to plot the actually correct position? Example Code: ...
2
votes
0answers
34 views

Revolution plot with missing pieces

I have the following $1D$ bump function h1 defined as follows: ...
2
votes
0answers
28 views

Is there a better way to space ChartLabels?

I am looking for a better way to specify the spacing between ChartLabels when using BarChart. My current implementation uses ...
2
votes
1answer
42 views

AxesLabel -> Automatic behave strange

MMA version 11.3 & 12.1 ...
2
votes
1answer
79 views

Remove white space from Density Plot

Is there any way to remove white space from Density plot?(See below). I tried "MaxPlotPoints", but it doesn't work in my case. I used the command below for this plot: ...
2
votes
0answers
79 views

Finding percentage of points within tilted ellipse?

I am trying to find the number of data points that I have that are within a tilted ellipse that I have generated to represent the 68% confidence region. I generated some data using: ...
2
votes
0answers
43 views

NMinimize with real solutions, problem in the resolution and criteria for other ways to solve equations

I have multiple parts in my question. You are welcome to answer to any of them :) Part 1 : I have 3 equations $p(x_1,y_1)=p(x_2,y_2),\mu_x(x_1,y_1)=\mu_x(x_2,y_2),\mu_y(x_1,y_1)=\mu_y(x_2,y_2)$. I'm ...
2
votes
0answers
44 views

Generating a directed graph from a map of flows

I have generated a stream plot, with curves on it using the following code: ...
2
votes
0answers
29 views

How to properly set ImageSize for both presentation mode and printout?

I made some slide presentations for teaching using Mathematica 12.0. It works reasonably well as shown in the following screenshot The plot in the screenshot is set to have ...
2
votes
0answers
56 views

Plot3D: why certain part of the plot is excluded?

Here is a simple 3D plot, but some part of the plot is excluded. ...

1 2
3
4 5
20