# Questions tagged [plotting]

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

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

### How to show net income geographically of a company in a certain city

Let's say that I have a company, and I already extracted it's net profit with time series. ...
32 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?
33 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 ...
55 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 ...
33 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 ...
31 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 ...
51 views

### Graph embedding constrained to a surface?

Have been contemplating it for a while, but did not dare to post as I felt like this must be a major undertaking to implement. Then saw the excellent answers to a recent question RegionPlot3D KnotData ...
57 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. ...
44 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 ...
52 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: ...
44 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 ...
39 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 ...
68 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 ...
272 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 ...
86 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 ...
47 views

...
47 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, <...
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]. ...
68 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 ...
98 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 ...
54 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: ...
50 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: ...
99 views

47 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: ...
39 views

### Revolution plot with missing pieces

I have the following $1D$ bump function h1 defined as follows: ...
38 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 ...
39 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 ...
82 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: ...
54 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 ...
33 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 ...
58 views

### Plot3D: why certain part of the plot is excluded?

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

### Including legend with reference magnitude in a VectorPlot

I'd like to plot a vector field with a legend for the magnitude of a reference vector. I have read all the document of VectorPlot and found only ...
61 views

### ListDensityPlot3D ColorFunction Interpolation

ListDensityPlot3D seems to do some sub-pixel colorfunction interpolation that results in an odd "halo" around some of the data. ...
30 views

### Exporting Texture to pdf with vectorized frame axes

If you export Graphics with frame like below ...
79 views

### Avoiding label bubbles overlapping horizontal line segments in TimelinePlot

I am creating a very large TimelinePlot, with perhaps six times the number of entries as in this near-minimal example (code below): Notice that bubble (labels) for the entries below the horizontal ...
48 views

### Encoding spatial data in Mathematica

I am doing some experimentation with machine learning and robotics, and want Mathematica to be my primary platform. For it, I need to represent a room with some obstacles (circles) and a goal (square)....
58 views

### Extra interpolation in ListPointPlot3D

I'm trying to plot a 3D surface using ListPointPlot3D and it looks almost right, but for some reason it's trying to connect points that should not connect. I think it's confused because the surface is ...
70 views

### How to segment a 3D data automatically?

I have a data dataCube, which consist of some floating stones and a circular belt. I want to get the 4 biggest stones from the image, and segment out the outer belt ...
102 views

### ListDensityPlot using

I have two data tables with identical parts along the vertical axis. For example: ...