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
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
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. ...
2
votes
0answers
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?
2
votes
0answers
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 ...
2
votes
0answers
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 ...
2
votes
0answers
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 ...
2
votes
0answers
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 ...
2
votes
0answers
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 ...
2
votes
0answers
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. ...
2
votes
0answers
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 ...
2
votes
0answers
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: ...
2
votes
0answers
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 ...
2
votes
0answers
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 ...
2
votes
1answer
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 ...
2
votes
1answer
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 ...
2
votes
0answers
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 ...
2
votes
1answer
47 views

Plotting list data of cross product of field vectors

...
2
votes
0answers
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, <...
2
votes
0answers
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]. ...
2
votes
0answers
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 ...
2
votes
0answers
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 ...
2
votes
0answers
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 ...
2
votes
0answers
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: ...
2
votes
0answers
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: ...
2
votes
0answers
99 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
45 views

why 3d plot‘s ticks in x,y,z has different directions

...
2
votes
1answer
112 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
27 views

Why is the graph truncated?

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

Removing polygons from exported RegionPlot

I have the following code that runs a RegionPlot ...
2
votes
0answers
94 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
66 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
120 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
1answer
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: ...
2
votes
0answers
39 views

Revolution plot with missing pieces

I have the following $1D$ bump function h1 defined as follows: ...
2
votes
0answers
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 ...
2
votes
0answers
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 ...
2
votes
0answers
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: ...
2
votes
0answers
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 ...
2
votes
0answers
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 ...
2
votes
0answers
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. ...
2
votes
1answer
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 ...
2
votes
0answers
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. ...
2
votes
0answers
30 views

Exporting Texture to pdf with vectorized frame axes

If you export Graphics with frame like below ...
2
votes
0answers
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 ...
2
votes
0answers
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)....
2
votes
0answers
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 ...
2
votes
0answers
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 ...
2
votes
0answers
102 views

ListDensityPlot using

I have two data tables with identical parts along the vertical axis. For example: ...
2
votes
0answers
108 views

Logarithmic scale in the legend of a GeoRegionValuePlot

Is there a way to make the bar legends show the values 1 to 9000 using a logarithmic scale than what Mathematica is automatically giving me? Here's my plot: The data I am using: ...
2
votes
0answers
84 views

Plot ContourPlot2D of PDE that depend of time over a set of image slices

A few days ago i made a publication asking about of projecing ContourPlot3D onto 2D slices (Project ContourPlot3D onto 2D slices. It is possible?), but i think i did not explain myself very well. I'm ...

1 2 3
4
5
22