Questions tagged [plotting]

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

Filter by
Sorted by
Tagged with
5
votes
2answers
83 views

How to plot a crossection of a ParametricPlot3D?

I'm plotting a surface using ParametricPlot3D. Ideally I would like to plot an intersection of the surface with a plane just as seen in another question (Cross Sections or slices of 3d figures - ...
1
vote
1answer
44 views

The vectorfield for nonauntonomous system?

The model is a nonautonomous system $x'=(2+cos(2 π t))x -0.5 x^2-0.5$ and it can be transformed to the autonomous form by ...
13
votes
3answers
974 views

In version 9 PlotLegends, how can I remove the strange edges that appear around LegendMarkers?

I'm running Mathematica version 9. I am using ListPlot to plot two sets of data. For each data set, I am using different ...
5
votes
2answers
199 views

Mathematica taking forever to compute

I want to simulate the fresnel diffraction through circular aperture.But mathematica is taking forever to calculate.Here is my code. ...
4
votes
2answers
189 views

Plot marker edges appear gray in the legend instead of black, as they do in the plot

I'm trying to get my PlotMarkers to appear in the Legend as they do on the plot. I've set up a function named square[], that makes a square with black edges. When apply this function in 'LegendMarkers'...
-1
votes
0answers
41 views

Why Are Centroid Calculations with Line Integral Wrong?

everyone. I'm currently trying to calculate the centroids of objects using parametric equations and line integrals. I already have a program that can parametrize any shape accurately with a closed ...
2
votes
1answer
120 views

Plot the solution from DSolve

I'm trying to solve a differential equation as in the following code: FullSimplify[DSolve[x'[t] == a + b E^(g t) + (c + d E^(-g t)) x[t], x[t], t]] which ...
3
votes
2answers
102 views

Plotting maxima within a simplex

I am trying to draw a particular maximum plot within a simplex. I have functions based on two variables: Write p,q for the two variables where p,q \geq 0 and p + q \leq 1. This defines the simplex ...
3
votes
2answers
109 views

SciDraw increases point size

When I make a ListPlot then hand it to Multipanel, the point size gets multiplied by some huge number. Can I control the point size from within scidraw? Here's a basic example: ...
0
votes
0answers
20 views

TargetUnits aren't working as expected on an InterpolatingFunction

Short version: My understanding of the use of TargetUnits in a Plot statement is that if the function being plotted has units, MMA will attempt to convert the output of that function to the unit form ...
5
votes
2answers
458 views

Why does Plot only sometimes use different colors for each curve [duplicate]

In this example Plot does not color each curve differently: Plot[{vx0 Sin[t], vy0 Cos[t]} /. {vy0 -> 1, vx0 -> 1}, {t, 0, 12}] but in this example it does: ...
2
votes
1answer
155 views

Solving a system of PDEs on a piecewise polynomial domain

I wish to solve following system of equations with Dirchlet and Neumann boundary conditions on an piecewise polynomial (cubic spline) shaped domain as showed here. ...
5
votes
1answer
118 views

How to set Color range for ContourPlots?

I'd like to set the color range for a set of ContourPlots within a Table. Please notice that the colors in the uploaded picture aren't the same from one plot to the other, (take a look to the ...
3
votes
1answer
28 views

How to create a color code for points based on 3rd dimension with ListPlot or ListLogLogPlot

I have seen some similar posts but could not quite find what I am looking for. I would like to create a 2D plot with discrete points that are color coded by a 3rd dimension value. The color ...
1
vote
2answers
63 views

Verification of plotted points of intersection and curve orthogonality

A unit circle and tractrix (with differential equations respectively), $$ \cos \phi =y;\, \sin \phi= y $$ and tangent slope $$\phi = \theta +\pi/2 $$ are plotted to verify orthogonality. Due ...
5
votes
2answers
466 views

Discontinuous Tube visualization

...
2
votes
2answers
136 views

Why are parametric plot coordinates different from image?

I am creating parametric equations of objects to find their centroids. With some help from others in a different stack exchange post, I was able to find some code that can accurately parametrize any ...
5
votes
3answers
177 views

How to get rid of “fringes” in 3D plot?

The code below generates a plot with some ugly "fringes". Is there a way to get rid of them and get a smoother graphic? ...
1
vote
3answers
72 views

ContourPlot3D not wotking for slicing z axis in the ranges of 10^-13

I am using ContourPlot3D to obtain a slice plane at z = constant. However I find that the plane's position is not moving when the range is of the order of 10^-13. I am using the following code. ...
0
votes
2answers
57 views

Automatic Manipulation of experimental data and plotting

I have experimental data which looks like this In the high positive and negative x-axis regions, my data is always linear, I want to extract the slope of data in these regions, take average and ...
1
vote
1answer
44 views

Non-convex hull mesh from 3d points

I am trying to create a 3d mesh object from list of points, but the only options I see in Mathematica are ConvexHullMesh and ...
5
votes
2answers
105 views

How to show just one function from a stored plot?

Q: Is there a general way to remove particular functions from a previously stored call to a plot function? Here is a specific example: ...
7
votes
4answers
171 views

Construct, in some manner, a four-dimensional “RegionPlot”

Let me abuse some Mathematica notation and formulate the following "command": ...
1
vote
1answer
17 views

RecursionLimit errors on Manipulate a DensityPlot expression

I am trying to do an interactive visualization of a very simple neural network (inspired by tensorflow playground): ...
0
votes
0answers
56 views

How do I plot the region of stability? [closed]

How do I plot the region of stability in Mathematica? Can any one help out please? $$\phi(z)=\left|\frac{1+z}{1-z}\right|<1 \qquad \text{for $z \in \mathbb{C}$}$$
2
votes
1answer
43 views

How to join two graphics generated from paired-points lists?

The Fig.1 and Fig.2 are generated from two lists, Fig.3 is joined and edited from Fig.1 and Fig.2 in Adobe Illustrator, the codes and figures as follows. I want to know how to get Fig.3 by Mathematica ...
4
votes
2answers
106 views

Align y-Axes in Overlay plot

I learned about how to plot two datasets in a single plot with two y-axes by using Overlay as has been done in one of the answers in this question. Now, my ...
1
vote
1answer
52 views

How to fit 2nd order polynomial to multiple graphs and show them together?

I want to fit 2nd order polynomial to multiple graphs and show them together; I imported file by using following command: Mode1 = Import["1-CF.txt", "Table"]; ...
1
vote
1answer
38 views

Plotting cylinders and planes on the same graph

How would I plot the cylinder $y^2 + z^2 = 9$ and the planes $x = 0$, $y = 3x$, and $z = 0$ in the same graph and in the first octant. ...
2
votes
1answer
82 views

Does ListPlot Joined Dotted crash front end reproducibly for large number of points?

The problem The following code crashes Mathematica 12 for Windows 64 front-end reproducibly in my computer (Win7 Pro, i7-4770 3.4GHz 16Gb RAM). ...
5
votes
1answer
81 views

Customize ColorData function

I am trying to customize the color data ColorData["AvocadoColors"] I want to make color data function of the gradient starting from the green to the white ...
1
vote
2answers
55 views

ListStepPlot with two axes of ordinates

I have the following vector: ...
0
votes
0answers
45 views

sine-Gordon equation using pseudospectral method [closed]

I want to try this code what is the problem ? I tried this from https://reference.wolfram.com/language/tutorial/NDSolveMethodOfLines.html When i tried this i got ...
1
vote
0answers
28 views

Plot Audio DAta

I am a beginner in mathematica. Currently i am working on audio file my problem is when i extract audio information using BinaryReadList and try to plot it works with mono wav file but cannot get ...
2
votes
0answers
38 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)....
0
votes
0answers
70 views

Plotting a maximization of a definite integral

I am applying Alex Trounev's approach suggested in this post. It worked for the function in that post. But it is now not working for another, more complicated function. My objective function is $f=\...
0
votes
0answers
69 views

3D-plot of a maximization of a definite integral

I'm applying the answer (If method) suggested by 'ThatGravityGuy' in this post in a more complicated case. Consider my objective function (pardon its formidable ...
1
vote
2answers
41 views

How to plot the result of Grad function?

When I calculate the gradient of a two dimension function like $r=\frac{1}{\sqrt{x^2+y^2}}$ with the syntax of h[x_,y_]:=Grad[1/r,{x,y}] and when I checked the ...
0
votes
1answer
38 views
0
votes
1answer
43 views

Plotting Function in a function not working

I consistently have problems using the plot tool when I want to find how some function (like maximization) varies as I change a parameter. In this example, I want to find how a function's imaginary ...
3
votes
1answer
27 views

How to add a Locator to a Manipulate / ListPlot?

I have the following Manipulate to graphically show the n-th roots of unity: ...
0
votes
1answer
67 views

Mathematica quits its calculations automatically

I am trying to plot the ListPlot3D but mathematica quits calculations without any warning or error. ...
3
votes
0answers
30 views

Error bars disappear in ListLogPlot when some points can't be plotted

Bug introduced in Mathematica 12.0? I'm having a problem: all the error bars disappear in ListLogPlot,ListLogLinearPlot, and <...
0
votes
0answers
16 views

Plot points corresponding to angles on a circle with mathematica and add labels [closed]

Using Mathematica software, I would like to : Plot a circle Plot angles on the circle corresponding to a list of angles Insert angle labels for the points Example : List of angles in Deg = {0, 30, ...
3
votes
3answers
204 views

3D-Plot with an inequality condition for parameter values

I'm trying to ListPlot3D the following function $f=\frac{-\frac{(t-1) (d-s) \left(2 c d (d (q-1)+s)-s \left(-2 d^2+d (s+2)+s^2\right)\right)}{2 s^2}+d^2-d s-d t+s ...
5
votes
1answer
46 views

Missing ticks and numbers on a plot when using JLink + Mathematica 11.3

I am facing a pretty random problem using JLink (Java) connected to a Mathematica 11.3 kernel and front-end. Basically I want to get an image using the JLink Java method ...
3
votes
4answers
157 views
2
votes
2answers
131 views

Overlay barcharts with same vertical axis

I want to construct a bar chart for which the last bar is two bars stacked, while the others are not stacked. My thought had been to create two bar charts and overlay them. The challenge I have is ...
3
votes
3answers
92 views

How to classify data and deal with it as needed?

I have a list of data describing the coordinates (x-, y-axes) of points in the plane. For the same axis x, there may be several points and if the number of coordinate is odd just neglect the first or ...
0
votes
1answer
46 views

Plotting an integral where the integrand depends on the parameter values (`If`)

With my function $f(x)$ I would like to Plot3D $\int_a^b f(x) dx$ with the parameter values $a \in [0,1]$ and $b \in [1,3]$. The challenging part has to do with ...