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
1
vote
1answer
16 views

Dynamic Update for 2D Random Walk

I have code for a random walk ...
1
vote
1answer
26 views

Drawing axis only in $\Bbb R_{++}$, but tags in $\Bbb R$

I'm sketching a diagram in $\Bbb R_{++}$ and I want to indicate the coordinates of some points. I want to place labels below the $x$ axis and to the left of the $y$ axis. But if I set ...
0
votes
0answers
17 views

How do you define the domain and range of the variables for a plot?

How do I define the domain to be only reals and the range to be only complexes? Everytime I plot using ComplexPlot[], I get a C->C function so there are basically too many variables to plot and I ...
0
votes
1answer
10 views

Difficulty refactoring a graphics point from displaying a tooltip to a label when using show to combine point with a plot

I have a Plot[...] of a system of linear equations and a function graphicsPoint[...] that generates a graphics point to show ...
3
votes
2answers
48 views

Plotting a function with the domain restricted. Basic question

I'm trying to Plot a simple function on a restricted domain. I tried ListLinePlot[Table[x^2, {x, x>-3, x<3, 1}]]. This doesn't work. I'm not sure how to take ...
2
votes
1answer
19 views

Plotting eigenfunctions as functions of parameters in the hamiltonian

I'm finding eigenfunctions using NDEigensystem of various hamiltonians. For example, the hamiltonian with Shcrödinger's equation: $$ H u(x)=-\hbar^2 u''(x) + A x^2 u(x). $$ I would like to be able to ...
2
votes
0answers
69 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) = ...
3
votes
1answer
74 views

Using DateListPlot without connecting dots

I have a list of values like this: When I plot this data using DateListPlot[data] I get a plot connecting the individual points such as: My question are: How can ...
0
votes
0answers
42 views

Option “Ticks” appears red, but without observable outputting anomaly in “ArrayPlot”

Below code is adjusted from an example in F1 of ArrayPlot, but I cannot understand why red shows, and looks like syntactic warning/error. (V. 12.1.1, Windows 10) <...
0
votes
0answers
45 views

Why isn't LogLinearPlot showing output? [closed]

I'm trying to make a log-x plot of a function evaluated over a specified range. The function is an interpolation function defined (by the range of data provided) between 1e5 and 1e9. But when I try to ...
10
votes
4answers
163 views

Change Opacity along a ListLinePlot

I'm trying to change the opacity of a line in a ListLinePlot for increasing x-value. E.g. the line should have opacity 1 at beginning and shade than down to opacity along the line. I want to take the ...
1
vote
1answer
32 views

Strange behaviors with ListContourPlot and ContourPlot: rotation relationship

Here is an example in ListContourPlot ...
2
votes
0answers
35 views
3
votes
2answers
72 views

ContourPlot for a certain value

Consider this example: f[x_] := -I*2*x + 3*x^2 which is a complex function defined on a complex plane $x=x_r+ix_i$ It is convenient to plot the contour of its real ...
3
votes
2answers
99 views

Plotting a Set of Three Points with Histogram3D

I would like to know whether I can use Histogram3D to plot a set of points with three given values. I want to plot the values {0, 0, 0.01}, {0, 1, 0.1}, {1, 0, 0.02}...
0
votes
2answers
52 views

Can I confine the codomain when drawing plot?

I want to confine the codomain of my plot. For example, I want to draw y=f(x) only when 3x<y<7x+3. If not, want to draw y=0. Is it possible in Mathematica plot?
-2
votes
1answer
29 views

I want to give different colors to functions in 3D Plotting, [closed]

I want to give different colors to functions in a 3D plot. For example, in the following statement, what must be included for doing so? ...
0
votes
0answers
82 views

Plotting the graph of complex Integral function

Can anybody help me to Plot the graphs of T1 and T2, please. The problem is Integral part becomes so huge OR indeterminate at some points. So how to find and skip that points? Thanks a lot. ...
1
vote
1answer
72 views

Plot Black Body Radiation

This is the version of Planck's Equation I am unable to Plot: ...
0
votes
0answers
27 views

Plot of simple system of linear equation only draws axis but not the plot of equations [closed]

I can plot some of the most challenging math functions using various mathematica graphics and plotting schemes but plotting some of the simplest math functions seem to elude me. I programmed a helper ...
7
votes
4answers
280 views

Correcting the Color Scale of a MatrixPlot

I did a MatrixPlot of a set of values that range between 0 and 1. I got the following first plot with no problems: As we can see from the legend, the values range between 0 and 1. Now, I am doing ...
2
votes
2answers
184 views

Code that produces plot in V5 doesn't work in later versions

Bug in introduced after 5, in or before 8.0.4, partly fixed in or before 11.3. I have problem in plotting Integral function. I can compute/plot the graph of this integration below in Mathematica 5.0, ...
3
votes
3answers
148 views

Problem plotting a bifurcation diagram of logistic map

I would like to plot a bifurcation diagram from the logistic map (difference equation) of the type $$ x_{t+1} = r\,(1-x_{t})\,x_{t}. $$ The code I used for that was ...
2
votes
1answer
48 views

How do I handle Cities in the analysis of covid-19 data?

For this map I am trying to find a way to have some kind of GeoRegionValuePlot and I just want only the biggest cities, not every town. The shade of each city on the map will give the number of covid-...
4
votes
1answer
46 views

Plotting vectors in a vectorplot along edges of a plot

I am plotting a vector plot that should represent trajectories through a space of values. When the trajectories hit one of the boundaries (the values 0 or 1 on each axis), the trajectories are not ...
8
votes
1answer
84 views

How-to generate a stacked BarChart?

I would like to generate a stacked BarChart using following sudo dataset. ...
2
votes
1answer
57 views

Plotting with “Around”

I have a number with certain uncertainty a1 = Around[1, 0.1] I try to plot a function with this number Plot[a1*x, {x, 0, 1}] ...
0
votes
1answer
29 views

How to plot a Root[] object? [closed]

I got a solution in the form of a Root object from an equation: ...
1
vote
1answer
81 views

How plot fabric of space time plots like these in Mathematica?

I would like to plot the blue deformed squared pattern rubber sheet surface like in this plot: https://physics.stackexchange.com/q/308295/14282 in Mathematica, with the modification that the ball or ...
2
votes
1answer
95 views

Calculate the Lyaponov exponent for a driven dampend spherical pendulum?

I’m relative new to Mathematica and also new to this forum. In fact this is my first question so please apologise if I do some formatting errors. I want to calculate the Lyapunov exponent of a driven ...
2
votes
1answer
43 views

Implementation of filling (Colour) [closed]

I have a question. When I use "Filling" Plot[Evaluate[{x^2, x}], {x, 1, 2}, PlotRange -> All, Filling -> {1 -> {2}}] One of the functions ...
0
votes
1answer
56 views

Plot 2D into discrete 3D [closed]

I want to do a 3D plot of this functiony[x_, r_] = -Tan[r] x where I get a set of lines evenly distributed on the r axis, with a discrete distribution. This is what ...
3
votes
0answers
45 views

Unfold/develop a RevolutionPlot3D mesh onto a 2D plane?

I'm making my own blimp out of emergency blankets (Mylar), and I want it to have a NACA0025 airfoil shape. I'm new to Mathematica, but I still managed to create the shape I wanted with ...
4
votes
2answers
60 views

Visualization of a set of data with a shape $ m \times n \times 3 $ with the last dimension interpreted as a color scale

Actually, if the data is shaped as $ m \times n \times 2 $, functions like ListLinePlot just do the job. But now I want to add colors to the curves according to ...
2
votes
2answers
53 views

How to create 2d ListPlot with distinct colors?

I have a data set of type (x,y,E), where E can assume 4 distinct configurations (0,0), (1,0), (0,1) or (1,1). I want to create a 2D plot using ListPlot considering the rules: If E=(0,0), then print ...
0
votes
0answers
37 views

Inconsistent and oscillatory behavior with formula

I have the following code ...
0
votes
0answers
38 views

Why does Mathematica ignore negative parts of ArcCosh function? [closed]

For example, I want to plot the function $\cosh ^{-1}(2 x+3)$ on a domain $0<x<10$. I plot this function and only see the positive part. ...
0
votes
0answers
58 views

How can I make density plot from a data (csv) with Log Scales?

I have a data in .csv format and I wish to make a densityplot of the data points but with a log-log scale. I imported the data into Mathematica and used ListDensityPlot with ScalingFunctions -> &...
1
vote
1answer
58 views

How to solve complex equations and plot the graph?

I am trying to solve these equations and want to plot the value of $a^{\dagger}a$ versus P0. I have tried this code but this gives me an error like "Conjunction::argr: Conjunction called with 1 ...
1
vote
0answers
18 views

How to generate a region with a finite width/height on say $ y $-direction, but infinite on $ x $-direction?

I want to use such a region as an Epilog in other figures. I have tried with HalfPlane, thinking ...
1
vote
1answer
88 views

Plot time dependent 3D heat equation solution with functions like Plot3D +Manipulate (or Graph3D) but using cylindrical coordinates

I have a time dependant heat diffusion equation here and I would like to plot the result of NDSolveValue. Here is the code I am using : ...
9
votes
1answer
122 views

Peculiar behaviour in the implementation of “Filling”

I was working with mathematica and I need to use "Filling", however I notice that it doesn't work when you have "small" numbers, for example if I make the following: ...
1
vote
0answers
56 views

How-to extract a region from a ListContourPlot?

Question How could I extract a surface from the ListContourPlot and use it to sample data? Below is the plot, and the code used to generate it. The ...
0
votes
1answer
52 views

How do we list all points in the Middle $3/7$-th Cantor Set?

Suppose we were to list all points in the $3/7$th Middle Cantor set where we first remove $3/7$th of $[0,1]$: $$[0,1/7]\cup[2/7,3/7]\cup[4/7,5/7]\cup[6/7,1]$$ then $3/7$th of remaining intervals, $3/7$...
4
votes
2answers
91 views

How to draw a surface in polar coordinates

I want to draw a figure in this post, but the result that I draw according to the following method is quite different from that in the post. ...
3
votes
1answer
44 views

Error bars in the same plot

I have the following data: ...
0
votes
1answer
45 views

DSolve is not able to find a solution in some points

When I use the below script to solve an equation and plot the solution, the plot shows some discontinuous lines. For example at point $x\approx0.25$ the solver cannot find the answer and the plot is ...
0
votes
0answers
29 views

“Solve” command not giving the correct answer for plot of a potential function [closed]

I have this code with this function of a potential V ...
1
vote
1answer
45 views

NumericQ slows down the computation in ContourPlot

I am trying to plot the roots of a function f(x,y) using ContourPlot as follows ...
1
vote
1answer
27 views

ListContourPlot - request for clarification, why do the derived regions differ, and how did I misuse it?

Question I have generated two data sets using Outer and Subdivide commands. Both use similar boundaries except the second ...

1
2 3 4 5
232