Questions tagged [plotting]

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

10,137 questions
Filter by
Sorted by
Tagged with
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 - ...
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 ...
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 ...
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. ...
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'...
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 ...
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 ...
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 ...
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: ...
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 ...
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: ...
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. ...
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 ...
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 ...
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 ...
466 views

...
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 ...
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? ...
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. ...
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 ...
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 ...
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: ...
171 views

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

Let me abuse some Mathematica notation and formulate the following "command": ...
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): ...
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}}$$
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 ...
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 ...
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"]; ...
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. ...
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). ...
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 ...
55 views

ListStepPlot with two axes of ordinates

I have the following vector: ...
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 ...
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 ...
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)....
70 views

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

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