# Questions tagged [plotting]

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

1,165 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
221 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 ...
141 views

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 ...
109 views

### Bug when using Plot3D over an ImplicitRegion?

Evaluating this expression seems to cause Mathematica to beep and quit the kernel: ...
469 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 ...
235 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 ...
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 ...
126 views

### I am trying to plot every mesh point of a model elephant so that the surface of the elephant wraps around the interior surface of the mirror

I'm trying to find a way to turn the elephant inside out in a way. Imagine cutting an elephant in half from tail to trunk, stopping right before the trunk. You could flatten the elephant out and wrap ...
40 views

### Problem of color and solid mesh style of two surfaces in 3D plot

I would like to plot two surfaces in the same figure using the following code. ...
30 views

### Global LabelStyle option does not work with SetOptions

I want to set global options for a plot, so I used the SetOptions command. However, some of the options don't seem to be applied. More specifically, this is the ...
118 views

### How can I combine two parametric plots in a continuous one?

I'm studying the Ekman spiral for piecewise uniform viscosity. So I have two velocity components (u,v) for every layer. One pair for the sufrace and one pair for the layer below. ...
34 views

### Changing the color and thickness of smooth histograms of two sets curves on the same graph

I have a code (shown below) where I generate two different sets of data and plot the two sets as a smooth histogram on the same graph. The code works pretty well. What I'm having an issue with is ...
50 views

### Controlling the position of a single axis in ListPlot3D

I have the following code plotting a 3D Normal distribution. The data for this normal distribution is saved in the table 'GaussData'. I want to view the plot from a specific angle so I can be ...
70 views

### Using units in NBodySimulation function

I'm trying to use NBodySimulation to run a simulation of objects such as stellar masses. I've tried using the InverseSquare and Newtonian settings on NBodySimulation for this, but InverseSquare doesn'...
44 views

### Unable to hide triangulation lines in GeoGraphics

The following code produces a night region that shows triangulation. I thought that EdgeForm[None] would hide it, but it does not. ...
112 views

### Artifacts When Plotting Results of Numerical Integration

I am trying to reproduce the following graph of phase shifts as function of frequency. Please see my code bellow. I used Mathematica to solve for t1 and ...
44 views

### Poor resolution of axes and ticks in DensityPlot

When I am plotting some data with Spectrogram the ticks and axes are very clean and nice, but DensityPlot produces a horrible ...
33 views

### Straight font in formulas

I'm trying to make a legend to a ListPlot. There is the problem, several letters are displayed in itallic and some in the plain slant. How can I fix this?
35 views

### Why is RotationTransform 100x slower than manually specifying the transformation?

I'm plotting an implicit surface using RegionPlot3D. I have two descriptions of the surface which I believe are (or should be) conceptually and functionally ...
56 views

### Certain plotting functions are setting variables unwantedly

I came across the following problem. Certain plotting functions set variables to values, which I do not want. For example, if I run SliceVectorPlot3D with an ...
34 views

### How to change the size of the y axis

I got this code but the solution is very tight in the Y axis, I wanna know how can I change the scale or the size of the Y axis and how can I obtain its solution cause it's not as simple as ...
35 views

### How to apply GeometricTransformation to ArrayPlot?

In a previous version of Mathematica (maybe version 7), it was possible to use GeometricTransformation on an ArrayPlot. That ...
63 views

### Can you calculate the area of region that is plotted with NSolve or FindRoot?

I plotted a pretty complex region in the xy plane (code given below). Basically, one of the inequalities is really complex and needs to be numerically approximated. In my code I do this with FindRoot. ...
46 views

### Can a likert score questionnaire be programmed with mathematica?

I am a phD student and as part of my investigation I will be applying a Likert style questionnaire. The answers give will pick from a scale 1 to 5. Can I program the questionnaire, text, and the 1 to ...
56 views

### JuliaSetPlot increase quality of output

For a complex dynamics class I take I want to generate a nice image of an Herman ring. I used this code to generate a first image: ...
48 views

### 12.1 VectorPlot - How to show differing magnitudes in the new implementation

I'm graphing vector fields for a class. Magnitude is important at least initially. In 12.0 and earlier VectorPlot plotted the different magnitudes as length. In 12.1 VectorPlot represents magnitude by ...
43 views

### Why is dual-scale plotting so complicated per the official function?

The page "How to | Generate Plots with Two Vertical Scales" describes an official recommended way to plot two functions with different vertical axis scales. The solution, in my opinion, is ...
114 views

### How to turn three two-dimensional plots into one 3D-plot

I am trying to make a complex function grapher (code below), and have made real and imaginary output 3d graphs, and have created functions to "slice" the graph into two dimensional contour ...
290 views

### How to illustrate the optimal solution with kinked constraint?

I have a simple optimization problem with a linear, continuous constraint or a kinked constraint. The optimal solution is either a tangent point with f*<T or at the kink with f*=T. The standard ...
163 views

### Trouble with ParametricPlot and custom options

Consider the following code: Options[pl] = {lim->{0,1}}; pl[n_, OptionsPattern[]] := Plot[x^n, Join[{x}, OptionValue[lim]] ] This function works as expected on ...
75 views

### Plotting list data of cross product of field vectors

I have some experimental data points of electric Ey(t, value) and magnetic field Hz(t, value). I am trying to calculate the ...
52 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, <...
89 views

### Combining PlotThemes, PlotMarkers and Plot with MaTeX used on Labels, Axis Labels and Legend

Summary I am currently attempting to make some of my earlier plots more fit for black-and-white printing, while keeping color and typesetting in TeX/Latin Modern Roman. While at it, I tried to ...
46 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]. ...
69 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 ...
107 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 ...
57 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 ...
41 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: ...
63 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: ...
111 views

40 views

### Revolution plot with missing pieces

I have the following $1D$ bump function h1 defined as follows: ...
53 views

### How to plot streamplot with line density proportional to vector strength?

I try to use Lorentz transformation to plot electric field of a moving electron based on wiki: https://en.wikipedia.org/wiki/Classical_electromagnetism_and_special_relativity. I want to plot lines ...
42 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 ...
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 ...