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
0
votes
0answers
36 views

DensityPlot ignoring my PlotRange request

Why, when I run the following code, do I get a plot which doesn't restrict the plot range to the range I request? Instead I get a largely blue space (indicating that the function values are very low ...
1
vote
1answer
21 views

Combining Labled with LabelStyle

I try to add a Style to my Labled plot. However, when I combine Labled with Label Style, I do not succeed. ...
2
votes
1answer
92 views

Constructing and plotting a special periodic function

I need to program and plot the following special function in Mathematica 12.0: $$ a_{1}(t)= \sum_{n\geq 1} \beta_{n}(t), $$ such that, for every $ n \geq 1 $ $$ \beta_{n}(t)= \displaystyle \sum_{...
4
votes
4answers
191 views

How to extend a function by period and display it

I want to extend this function into a new function according to its period Plot[-((E^x + E^(-x))/2), {x, -1, 1}, AxesOrigin -> {0, 0}] and then draw this ...
2
votes
1answer
54 views

Plotting a two parameter function evaluated at a specific point

I am trying to solve the following problem: given the differential equation $$\frac{d^2y}{dx^2}+\bigg(a+b\frac{2}{\pi}\tan^{-1}x\bigg)y=0$$ subjected to two different initial condition we get two ...
1
vote
0answers
28 views

AxesOrigin in ContourPlot [closed]

Is there a way to change the origin of the axes in ContourPlot? I know that Plot the option of ...
8
votes
4answers
205 views

Obtain PlotLabel from Plot

I have a very simple question that I cant find answer: how do I extract the PlotLabel from an existing plot? For example ...
0
votes
1answer
39 views

Setting different steps for Y-Axes of ListPlot

I am trying to set the scaling interval of my Y-Axes different than Mathematica automatically does. So in steps of 1000 instead of 2000 (see picture) At the moment I determined following PlotRange: <...
1
vote
1answer
67 views

how can draw a scatter plot with a regression line across regions using Manipulate[…]

I have the following code: ...
4
votes
1answer
31 views

Control width of IntervalMarkers in ListPlot

I am creating an scatter plot with error bars in Mathematica 12 using IntervalMarkers -> "fences". Is there a simple way to increase the width of the top and ...
1
vote
0answers
50 views

Why is g[x] handled differently as f[x] from Mathematica? [closed]

When I execute this code: ...
-1
votes
0answers
52 views

Trying to figure out someone else's code and can't understand how this plot works (or rather, doesn't)

The person before me created a system to create a x,y plot of ellipses according to certain data. She was able to create a list of these plots, but somehow, the code became unusable and I can't ...
2
votes
1answer
81 views

Selecting Edges and Corners in a Mesh

Consider the following VoronoiMesh obtained after a few iterations of Lloyd's relaxation algorithm ...
2
votes
3answers
65 views

How do I add an error band to a plot?

I have two plots, one generated with Plot and the other generated by ListLinePlot. Both plots look the same. I am trying to plot ...
1
vote
0answers
42 views

Numerical Artifacts in Schwarz-Christoffel (I think?) How to remove?

I have a problem that involves integrating a complicated Schwarz-Christoffel integrand. In order to test out my results so far, I've tried to give simpler integrands of the same type to Mathematica, ...
2
votes
1answer
55 views

Euler's constant 'e' in italic in plot legend

I'm new to Mathematica. I wrote the following code and got the output as follows I cannot reproduce the code here as I don't know how to type 'e' in the blackboard font. I typed it in Mathematica by ...
1
vote
0answers
73 views

Plotting with known final value [closed]

I want to make a plot with a condition in such a way that the function A3 is zero at above some value of argument x. For ...
7
votes
2answers
72 views

How do I plot this vectorial system in Cartesian coordinates regarding the triangle $ABC$?

Let $ABC$ be a triangle from plane such that we define three points $I$, $J$ ,$G$ satisfying respectively the following equations: $$2 \vec{IA}+\vec{IB} =\vec{0}$$ $$\vec{JB}-2\vec{JC} =\vec{0}$$ $$...
2
votes
1answer
48 views

How can i intersect a line with it´s rotated counterpart?

So, i'm trying to intersect an infinite line with a line, this is my code for now, i have been using Region Intersection, but it seems it does not work with this case i have: ...
2
votes
1answer
38 views

ColorFunction-> Distance to specific Point (Mean)

Good Day to you, I am trying to plot points in a ListPlot/ListPointPlot3D with a ColorFunktion representing the distance to a given point (in my case the Mean point of the data). I have tried this, ...
0
votes
0answers
28 views

How to overlap 2 different Y axis plot using OverLay

I want to plot the following image using ListPlot [taking the points from get data graph] and I used the command OverLay along with ImagePadding ip = {{85, 65}, {125, 0.16}} and ImageSize-> 500 ...
2
votes
1answer
34 views

How to create parametric region including a parametric curve and a non-parametric line?

I am trying to integrate a figure composed of a piecewise parametric curve with both ends bound by a straight, vertical line segment. I have displayed the curves on top of each other using the ...
1
vote
2answers
99 views

Why does ParametricPlot does not reach the values I expect?

I have these expressions: ...
3
votes
2answers
174 views

Plotting boundary of 3d topographical plot on a 2D line

I have a table consisting of the points of the following plot: Which looks like this from the top: I would like to plot a line connecting all the dots of the boundary in the first picture, so that I ...
1
vote
0answers
51 views

Plot a circle on Spherical surface [duplicate]

How do I can plot a circle on a sphere using Mathematica code? I would like to draw small and great circles for arbitrary orientation on spherical surface.
1
vote
0answers
33 views

Scattering propagating wave on potential using Manipulate and ListPlot

I have written the following code: ...
4
votes
1answer
105 views

Plot a graph with an uncertain number of tangents

The code below tries to illustrate a graph ($y=(2-x^3)/x$) that can have 1-3 tangents depending on the tangent point $a$. ...
0
votes
1answer
28 views

ParametricPlot on Piecewise function not working with consecutive t values [closed]

I am trying to graph a piecewise function composed of a series of parametric cubic functions. I initially created a ParametricPlot for the first four pieces of the equation and it was working fine, as ...
3
votes
1answer
35 views

Manipulate ListPlot a matrix [closed]

i am tring to plot a propagating wave function, but the instead of function i have points. so i have a n*n matrix (TTpsi) that i want to plot each row separately. The wave is "propagating" when the ...
0
votes
0answers
35 views

How to contour plot Sign? [closed]

I want to draw contour plot of sign function: fc[x1_, x2_] := Sign[x1 - x2] plt2 = ContourPlot[fc, {x1, 0, 5}, {x2, 0, 5}] but Mathematica draws blank plot: ...
-2
votes
2answers
79 views

Manipulate NDsolve 1D-reaction diffusion equation

I want to solve the following 1D-reaction diffusion equation: $$\frac{\partial}{\partial t}u(t,x)=\alpha\,\frac{\partial^{2}}{\partial x^{2}}u(t,x)+a\,u(t,x)$$ $$u(t,0)=0\,\,\,\,\,\text{et}\,\,\,\,\,u(...
4
votes
1answer
61 views

RevolutionPlot3D: get graphics primitives

From this answer, I was able to figure out how to get the graphics primitive from a Plot3D. However, this does not seem to work for a ...
0
votes
1answer
82 views

How can I draw a tailor-made contour plot?

Given the following code: ...
2
votes
1answer
53 views

ContourPlot not showing all curves [closed]

For some reason ContourPlot does not show all the curves (I am using Mathematica 12 Home Edition on Windows). For example consider ...
1
vote
0answers
23 views

What is the default Color Gradient used by ContourPlot? [duplicate]

What ColorFunction does ContourPlot use by default --- that is, what does "Automatic" mean as the value for that option? The "Density and Contour Plots" tutorial says: By default, the color ...
4
votes
2answers
254 views

Concentric layered sphere with logarithmically scaled radius

How can I achieve a 3D visual of a concentric layered sphere (like an onion), where the radius of each layer is tick-marked using a logarithmic scale? Specifically, my project is to realize the ...
0
votes
0answers
68 views

How can I reverse the direction of the y axis of a list vector plot? [duplicate]

I want to reverse the direction of y-axis of my plot. What should I incorporate in my code? I am attaching part of my code where the plotting action is occurring. ...
8
votes
1answer
82 views

How do I make PlotLegends appear graphic symbols in the correct color?

If I create this plot ...
2
votes
1answer
38 views

How do I increase the tick width of error bars in ListPlot?

I have a plot with y-error bars and would like to increase the tick size of my error bars. This is the code for a simple example plot: ...
1
vote
0answers
51 views

Plotting PDE Solution With Changing Parameter

I have a Fokker-Plank equation I'm trying to solve the Fokker-Planck equation $$\frac{\partial p}{\partial L}(L, \eta)= \frac{1}{L_{loc}}\frac{\partial}{\partial \eta}\left[\left(\eta^{2}-1\right) \...
4
votes
1answer
60 views

Keep mesh of triangulation under complex valued transformation

I try to make a quick tool for "plotting" complex valued functions. Therefore I generate a Table of complex valued points lying in the complex plane building a ...
1
vote
1answer
52 views

Tooltip for a ListPlot

I have the following values: ...
3
votes
1answer
104 views

Getting a fimbriated plot

I use the online version of Mathematica. The function I want to plot is: ...
0
votes
1answer
60 views

Plotting a Piecewise function that returns implicit equations using ContourPlot

I am using ContourPlot to plot implicit equations. Plotting separate implicit equations seems to work fine, however I can't get ContourPlot to plot a piecewise function that returns implicit equations....
1
vote
1answer
65 views

Parametric plot of data from NDSolve

I have been trying to plot the solution of a set of differential equations solved used NDSolve. Now, in one of the cases, I have the find a parametric plot of the ...
0
votes
1answer
46 views

ImageSize of Logplot and LogListPlot

I'm using Show to draw a graph showing a Log Plot and a LogListPlot at once. However, the image size errors come up suddenly after changing the y-axis ranging from 0.01 to 1.0 -> from 0.01 to 1.2. The ...
0
votes
0answers
38 views

How to get a scale-able color bar with ListVectorPlot in Mathematica?

I am plotting some vector plots with the ListVectorPlot function with VectorColorFunction being ...
2
votes
1answer
80 views

'How to setting color of fractal to three roots '

I am trying to create the basin of attraction of newtons method, below code is working for fractal but I cannot set fractal colors for three roots, How to set these colors for three roots. I use the ...
3
votes
1answer
82 views

Add a legend to a combined Plot

I have trouble adding a second legend to this map (see picture underneath). I need the legend to that show each existing bubble size, with the respective rainbow color (from the map) and with the ...
3
votes
2answers
155 views

Show a number of line segments for single variable

Suppose the following line segments: 2<x<5 0<x<3 1<x<6 I would like to somehow see a plot of those line segments. Preferably vertically, ...