Questions tagged [plotting]
Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.
12,340
questions
1
vote
2answers
19 views
2-dimensional random walk
b = RandomVariate[NormalDistribution[0, 1]];
ListlinePlot[b, PlotRange -> 35]
I am so new to Mathematica. I am trying to generate a 2-dimensional walk with ...
3
votes
1answer
63 views
Callout labels just don't appear
If I make a simple plot with points I want to label using Callout this fails. For example:
...
0
votes
3answers
102 views
What scaling function will compress the values between an interval?
Can someone please help me find the scaling function that will help see the y-intercept of 5 and the maximum of 20000 on the same scale in the function below:
...
3
votes
1answer
49 views
RegionPlot edges with different BoundaryStyles?
I executed this command:
RegionPlot[x > 2 && x < 3 && y > 2 && y < 3, {x, 0, 4}, {y, 0, 4}]
I would like the top and right sides of the square to be dashed lines ...
1
vote
0answers
38 views
Remove defect of display in ListDensityPlot3D
I have a 3D volumetric data (for example, $64\times 64\times 64$, at each point there is a value) read in from a file and I want to use ListDensityPlot3D to ...
4
votes
2answers
63 views
xyz SplitBy y then Drop y for ListLinePlot
I'd like a more efficient way of doing the following:
I have xyz data in the form of MyList for which I'd like to plot z as a function of x, split by y.
...
0
votes
0answers
33 views
Getting ParametricNDSolveValue::mxst:
I'm trying to create a manipulatable SIR model with variable infection rate in Mathematica. To (very roughly) imitate the effect of government policies, I want the infection rate to be a certain ...
0
votes
1answer
49 views
Solve for not y = 0 but for y = n [closed]
Let’s see if I manage to explain this well enough. I need to find roots of an equation(let’s say a quartic) but not at the points where the slope crosses the $x$-axis (y = 0), like the ...
4
votes
2answers
162 views
How to plot the given trihexagonal network?
Following my previous question
How to plot the given graph (irregular tri-hexagonal) with Mathematica?
I need a 2D network of the Fig. $a$, something like Fig. $b$ with red points on all vertices. ...
1
vote
1answer
58 views
Superimposed (put curves on top of each other) in one region
If I have the following data:
https://pastebin.com/AVFwHkC8
or
https://pastebin.com/6kSJBLkR (this is the same data with two extra sets)
Which plotted like this: ...
5
votes
2answers
185 views
How to plot the given graph (irregular tri-hexagonal) with Mathematica?
Is it possible to plot the following graph with Mathematica (with red points on all vertices)?
Since I have drawn the plot manually, it is not very clear, but the lengths of the edges are as follows ...
0
votes
1answer
45 views
Problems in plotting a function of two variables
Not able to generate the plot in following code. Kindly help to fix it
...
1
vote
1answer
28 views
Manipulating ScalingFunctions for several Plots inside Table is working, but not working inside ParallelTable
I've encountered a problem I can't make sense of:
I'm combining the ListPlot of a HPLC chromatogram (called bgcorrected in this case) with a ...
1
vote
2answers
65 views
How to plot a vector field with arrow length and background color for strength and direction
I want to visualize a 2D vector field, e.g.,
Table[Exp[-(x^2 + y^2)/4] {y, -x}, {x, -3, 3, 0.2}, {y, -3, 3, 0.2}]
in the following way:
the arrow length denotes ...
0
votes
0answers
38 views
Fortune's Algorithm (Conditional Step Size in `Manipulate`)
I am trying to implement Fortune's Algorithm. Here is my code so far.
...
1
vote
1answer
38 views
Overlaying a single color with a colorfunction on a MatrixPlot or ArrayPlot to highlight certain values
I'm still new to plotting in Mathematica and have been trying to figure out how to overlay a single color (white) over a color gradient (in this case rainbow) to highlight a range of values in a plot ...
1
vote
1answer
31 views
0
votes
0answers
39 views
Saving DensityPlot as vector graphics in Mathematica 12.1 and above
I want to save DensityPlot[] as vector graphics to PDF. As an example, let's save this plot:
...
1
vote
1answer
46 views
0
votes
0answers
57 views
Why Mathematica does not plot my expression? [closed]
My code is given below. Here I want a plot of Reflectivity R.
...
2
votes
1answer
30 views
Using ListPlot3D with custom colours
I would like to use ListPlot3D to make a 3D plot using a file containing the following information (4 columns):
...
1
vote
0answers
33 views
ListDensityPlot3D with x-axis in logscale
Starting from a data set like the one used in this post:
Importing and visualizing 4D data
DATA
It can be viewed using ListDensityPlot3D, as follows:
...
1
vote
0answers
40 views
Frame disables Ticks in Plot and ListLinePlot [closed]
I stumbled upon a weird behaviour of Plot and ListLinePlot functions.
Let's plot a simple function
plot1 = Plot[Sin[x], {x, 0, 10}]
Now let's say I want to ...
3
votes
3answers
107 views
Labeling cluttered vertices
I am trying to create a ConvexHullMesh plot where the vertices are labeled with their positions. I generate the ConvexHullMesh using
...
1
vote
1answer
38 views
How to Increase the Number of Contour Lines (Denser) for a Specific Region?
I'm struggling to increase the number of contour lines shown on this graph, and preferably there are more contour lines between x+y==0 and x+y==2.
...
0
votes
3answers
99 views
0
votes
1answer
60 views
3D scatter plot combined with user-defined adjustable planes [closed]
I am trying to find some service/application/web-app or otherwise that allows for the following functionality:
Plot points in 3d space.
Insert plane in 3d space wherever I like. As in it must not be ...
-1
votes
0answers
48 views
Mathematica Loop for a pattern [closed]
I'm trying to make this 2D static mixer with a loop. Can someone help me?
0
votes
1answer
63 views
0
votes
0answers
51 views
Please help me with the plotting of the following function? [closed]
Plot[Im[ComplexExpand[-0.0078125` i + 1.25` k -
0.0078125` Sqrt[1.` i^2 + 127999.99999999999` k^2]]], {k, 0, 6}]
0
votes
4answers
73 views
Plot defined function several times
I want to plot the partial Fourier series of a function.
I have this:
...
0
votes
1answer
70 views
What's the best way of setting global defaults for my Plots?
Obviously there are many ways to change the global settings, such as $PlotTheme or SetOptions[], but what I'm looking for is a ...
3
votes
2answers
116 views
How to make columns different colors in an ArrayPlot?
Consider an ArrayPlot of some arbitrary matrix with values between zero and one.
...
3
votes
1answer
51 views
6
votes
2answers
194 views
0
votes
2answers
51 views
How to draw with ErrorBarLogPlots
I want to draw those data with ErrorBar and the Y-axis must be in Log scale
...
2
votes
1answer
138 views
How do I draw a conformal mapping from the z-plane to the w-plane
I am total beginner in Mathematica. Don't know a thing. I need to draw some diagrams for showing the conformal nature of map $w=e^z$.
I need to draw some contours in $z$-plane; e.g., horizontal line, ...
1
vote
1answer
62 views
ListPointPlot3D Function for DateObject
i was looking for a plot function which displays as function of Time/dates 2 series of different data, something like a ListPointPlot3D but for ...
0
votes
0answers
32 views
Problem with AxesLabel and LegendLabel
I'm trying to combine VectorPlot and DensityPlot on the same graph. So I have:
...
0
votes
0answers
47 views
How to improve resolution of Plot?
When I plot this expression, the line is a little jagged.
V = 10^(-44)*(-21.12213280669467 - 832454.5122565613*Exp[-71.6 r]);
Plot[V, {r, 0, 0.7}]
[
How can I ...
-1
votes
0answers
45 views
Rotate and translate previously-plotted data
I have the following:
Show[data1, data2, data3,PlotRange -> {All, All}]
where data1, ...
2
votes
1answer
34 views
Passing an expression to the Plot Function does not Work
Solving a differential equation I found that its solution was analytic, and I stored it as an expression from the default rule output of the DSolve[] function:
<...
1
vote
0answers
29 views
Plotting Radiation Pattern for Hermite-Gaussian beams for different modes
I want to plot the Radiation Pattern for Hermite-Gaussian beams (HG beam) as given in the Figures Ref Research Paper Fig 2, where u and v be the beam modes for the Hermite-Gaussian beams
The coding ...
1
vote
2answers
47 views
Shift data of the form `Plot[g, {x, 0, 100},ImageSize->Large,…etc.]`
If I have the following:
Show[data1, data2, data3,PlotRange -> {All, All}]
where data1, ...
2
votes
2answers
73 views
How to plot a new numerical FinancialIndicator in TradingChart
I plot a trading chart by using TradingChart for early December data:
...
1
vote
1answer
27 views
0
votes
3answers
72 views
Superimposed data on top of each other in a Do Loop
If I have 4 different types of data such (that I get from an Excel file) as:
https://pastebin.com/j3Bgfxqm
I am trying to implement a ...
1
vote
0answers
48 views
A question about Plot an NIntegrate and FindMaximum is too slow
I need to DensityPlot an NIntegrate where near the maximum piont. So I need to use ...
2
votes
2answers
60 views
errorplot coupled by shaded region of the dataset
I have a dataset with errors. I use "ListErrorPlot" to plot the data with the subquent errorbars. Now I need to shade the the data region. The shaded region will include data with error bars ...
3
votes
2answers
28 views
All the polar ticks in a ListPolarPlot are not showing [closed]
I want to have a plot with polar axes, but the axes numbers get alway lost or I can't see them in their full size. The problem is particularly bad at the left and right edges. Also, it seems that the <...