Questions tagged [plotting]
Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.
14,826
questions
0
votes
0
answers
38
views
How to plot ListDensityPlot3D with four column data?
I want a density plot with three-dimensional data of a function f[x,y,z]. The data is comprised of four columns corresponding to x,y,z,f. I tried using the following commands.
...
0
votes
1
answer
66
views
ListPlot doesn't start from the origin
I've just started using Mathematica for one my university modules, so I tried replicating the results from our practical.
I've defined a function
...
1
vote
2
answers
121
views
How to make all my frames to be the same size?
I have several figures, like the one posted here, as follows:
...
0
votes
1
answer
60
views
Suggestion for labeling my plots
I have several figures like the one in the below:
...
0
votes
2
answers
57
views
Need help to 3D plot of the letter W
Generate a 3 D list plot using the image data from a binarized size - 200 letter "w" as heights
...
4
votes
1
answer
99
views
Custom scaling of x-axis in ListLogPlot
My question is a lot similar to the one about Custom Scaling of x-axis in ListPlot, however since I am using ListLogPlot, the option of ScalingFunctions does not work. I have a data set:
...
1
vote
3
answers
192
views
How to plot the described figure in mathematica? [closed]
I have had an assignment for which I was supposed to calculate the maximum volume of the figure. I have done it and found my maximum points in the figure. The assignment does not require to plot the ...
1
vote
1
answer
45
views
Aligning text on a graph
I would like to align the reduced temperature text Tr below the x-axis and not align it to the whole graph. The code used so far is this
...
0
votes
0
answers
34
views
Do the options LegendFunction->"Frame" and PointSize work?
In the Mma versions up to 12.2 the function LegendFunction->"Frame" worked. Now (version 13.2, Win.10) it seems not to work:
...
3
votes
1
answer
85
views
Legend for plot of multiple functions involving ReplaceAll only shows first function
In Mathematica 13.2, while defining a function for manipulating and animating a plot of multiple functions, I'm unable to generate a legend for the second and subsequent functions in my list. I've ...
4
votes
2
answers
156
views
Visualizing Signs of Two Expressions
I have two eigenvalues that are given as functions of two parameters $a$ and $b$
$$\lambda_1 = - a -\sqrt{ a ^2-b^2}, \lambda_2 =- a + \sqrt{ a^2-b^2}$$
I have a restriction that $a \gt b > 0$.
I ...
1
vote
1
answer
48
views
Interrupted plot lines when multiple branches of an ODE solution are plotted
I am plotting the following:
...
0
votes
0
answers
22
views
How to plot a function that depends on a solution to a numerical equation?
Consider a function
H[q(t),r(t)] = (1/2)(f[r(t)]-f[q(t)]),
where f(x) is known, r(t) depends on q(t), and q(t) is a solution of a numerical equation.
Question: How do I plot H(t)?
7
votes
2
answers
165
views
Plotting set of functions with individual regionfunctions using PlotLegends
In this simple example, a set of functions is plotted using PlotLegends functionality.
...
1
vote
1
answer
106
views
Stepped Infinite Square Well [closed]
Here is the link for making the above graph for the Stepped infinite square well.
The problem here is, all the eigenfunctions and energy eigenvalues are previously defined. Whereas, I want to use this ...
1
vote
1
answer
104
views
Couple PDE of order three [closed]
I tried to solve this coupled PDE with NDsolve and use manipulation code for manipulating the obtained plot, but I get an error like order inconsistency. Here I ...
2
votes
2
answers
121
views
Fourier series fit doesn't consider different local maxima of the data
I'm trying to appropriately fit a fourier model to experimental data. But the problem is that the resulting fit doesn't consider the varying local maxima of the data.
Here's the data:
...
7
votes
3
answers
546
views
How to plot a point with two colors?
How can I use this type of marker for this?
...
0
votes
1
answer
59
views
Why are there problems solving this SDE system?
Following this solution by Alex: Numerically solving a system of SDE's with Levy noise?, I tried Alex's solution for a different model:
...
4
votes
2
answers
454
views
How to efficiently make this color wheel?
The best approach I can find is the following:
...
0
votes
1
answer
38
views
What's going on with Plot and Mesh here?
Here's a relatively simple function, i[t,lat,i0], that plots solar intensity as a function of time, t, given latitude, lat, and a solar constant, i0:
...
3
votes
1
answer
63
views
How to make filling (semi) transparent?
I want to make the filling between lines 2 and 3 semi-transparent so that the viewer can see there is another filling between lines 1 and 3 in the background. How can I do that? Thanks in advance.
<...
5
votes
1
answer
67
views
How to save a plot from WolframCloud in the best quality?
I am using wolframcloud.com for generating a plot, but when I save it by right clicking and following "Save image as..." the plot gets saved with low quality (blurred). Is there a better way ...
4
votes
1
answer
102
views
Plot Legends and curve labels inside Show
Here is a simple version of my actual problem where I want to label curves inside Show and indicate the labelling by a legend.
...
0
votes
2
answers
100
views
Selecting the specific values from a table and saving in a table:
I have the following code:
...
1
vote
2
answers
104
views
How to plot a function line with Markers, such as square, triangle, circle and so on?
How to plot a function line with Markers:
...
2
votes
1
answer
228
views
Plotting a 4-dimensional graph with the fourth dimension depicted using a color scheme
I wish to use Mathematica to plot a 4-D graph of R0 (basic reproduction number of a disease) against three given parameters in which the three parameters are represented by the x-, y-, and z- axes and ...
1
vote
0
answers
61
views
Plotting two coupled functions
I am trying to plot u(t) and v(t) vs t but no luck. I have also used RecurrenceTable but of no use.
Here are the couple functions
...
0
votes
0
answers
61
views
Plotting projections of curves and surfaces in 3D
I would like to adapt the following code to generate two pictures: the first one is identical to the one it generates, but with the projections on the $xy$ plane of the caps that appear on the ...
4
votes
1
answer
143
views
Why is Evaluate[] in Plot[] not necessary in some cases?
after reading some related materials(Why do I have to put Evaluate[] here), in my understanding, BecauseAttributes[Plot] has ...
5
votes
5
answers
307
views
How can I get rid of the parenthesis in Mathematica? [duplicate]
I am new in mathematica , I am trying to solve an equation and show a graph of the solution and I am getting empty graph because of the additional Parenthesis I get .
for example I want to get ...
3
votes
1
answer
145
views
Time domain to Frequency domain: Simple question
I have an input sine wave of:
f=60 Hz.
a[x_]= Sin[(2*\[Pi]*f) * x];
If I want to have an input, the same sine wave but in the frequency domain, how it can
be ...
2
votes
1
answer
57
views
Plotting several curves of the same variable for different values of a parameter
I am coding an SIR model using Mathematica. I would like to know how to plot multiple curves of I on the same figure for different values of the parameter beta, say for the values of 0.001, 0.002, 0....
1
vote
2
answers
81
views
Plotting the solution of an equation
I just wondering if I can plot this solution?
FullSimplify[Integrate[1/Sqrt[-1 + f/3 x^2 + b/x], x] , Assumptions -> {x > 0, f > 0, b > 0}]
0
votes
2
answers
72
views
How can I plot a set of data in which each subset has three elements
let's assume this the set of data
{{a1,b1,c1},{a2,b2,c2}........{a10,b10,c10}}
plot a vs b and a vs c
I have tried plotting this using ListLinePlot function but it didn't work
1
vote
1
answer
79
views
How does ListLogLinearPlot work and can it obtained from a ListPlot?
Consider the following example plot for some point data
ListLogLinearPlot[data[[All, {1, 2}]], Joined -> True]
I need to know exactly how ...
0
votes
1
answer
71
views
I want to increment the data one by one so that the histogram changes in Manipulate
BarChart[{1,2,3,4,5,6,7,8,9}]
How can I pre-populate the data from this source code and move it with Manipulate to show how the ...
2
votes
1
answer
47
views
Plot with implicit function
This question is a follow-up from this post. Consider a function $e=f(w,a;i,\lambda)$ where $w$ is implicitly defined as $w=g(a;i,\lambda)$ such that $w\geq 0$. Hence $e$ is eventually a function of $...
2
votes
1
answer
55
views
Plotting a function involving an implicit function
The function I would like to plot is $e=f(w,a;i,\lambda)$ where $w$ is implicitly defined as $w=g(a;i,\lambda)$ such that $w\geq 0$. Hence $e$ is eventually a function of $a$, i.e. $e=f(a;i,\lambda)$.
...
0
votes
0
answers
22
views
Plotting an implicitly defined function for different parameter values
Consider an equation whose solution yields $w$ as a function of $a$ with two parameters $i$ and $\lambda$, i.e. $w=f(a;i,\lambda)$. Here is the code for solving the equation to obtain the solution for ...
1
vote
2
answers
54
views
Extract data points from ContourPlot3D
I have a ContourPlot3d shown below. There are some posts (157477) (3015) (19859)
that showed how to extract points using a combination of ...
6
votes
3
answers
573
views
Most convenient way to visualize the internal structure of a three-dimensional manifold
Let's say we have a 3D spherical shell specified by the command:
Regionplot3D[1/2<x^2+y^2+z^2<1,{x,-2,2},{y,-2,2},{z,-2,2},BoxRatios->Automatic]
When ...
3
votes
1
answer
77
views
How to include sparse points in a ContourPlot if any?
I'm working with the following expressions:
$$\left(\frac{1-\tanh (X)}{\tanh (X)+1}\right)^{-k}=\pm\frac{P_2^{(k,-k)}(\tanh (X))}{P_2^{(-k,k)}(\tanh (X))}$$
where $X\in[0,5]$ and $k\in\left[-\sqrt{\...
0
votes
0
answers
75
views
Creating an interactive plot that zooms into the function
I am attempting to create an interactive guide that zooms into the function G[x] when you roll the mouse:
...
2
votes
1
answer
91
views
A Simple Integrate
I'm facing the integral
...
8
votes
5
answers
631
views
2D cross-section of ParametricPlot3D
Now I'm trying to get the two-dimensional cross-section from ParametricPlot3D, the details of this question are as follows
As an example, here is a parametric equation: x=x(u,v) y=y(u,v) z=z(u,...
0
votes
1
answer
70
views
Solve an equation for different values
I was trying to solve this equation for different value of a constant (a) but the solution is not different for those values?!! b and m are positive values.
...
0
votes
0
answers
39
views
Some confusions about Evaluate[] and HoldAll in Plot[] [duplicate]
i can't understand the outputs of the three commands in the following picture.
question1:
In my understanding, command one Plot[Table[a*x^2,{a,3}],{x,-3,3}] is ...
6
votes
2
answers
185
views
Approximation in LinePlot from NIntegrate
I am facing an approximation issue during a plot from numerical integration through NIntegrate. The code is:
...
0
votes
2
answers
89
views
How to increase the resolution of a RegionPlot3D?
How can one increase the quality of the following plot
RegionPlot3D[{2z>= x+y&&x-y==0},{x,0,1},{y,0,1},{z,0,1},Mesh->None,MaxRecursion->6]