Questions tagged [plotting]

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

2
votes
2answers
122 views

Finding the radius of a circle given that it is tangent to both axes and contains (10, 9)

A circle is tangent to both axes in the 1st quadrant of the xy-plane. If the point (10, 9) is on the circle, what is the circle radius?
-1
votes
1answer
39 views

How to specify resolution of a plot?

Suppose I need to plot Sin function: Plot[Sin[x ], {x, -10 , 10 }] Now I need to specify the resolution of the plot. I tried by using list Plot ...
1
vote
1answer
37 views

Plotting points using multiple colors with `ListPlot`

I've got two sets of points, plotted with ListPLot. I would like the second set to have one point of each color specified. I've tried using ...
0
votes
1answer
23 views

Plot region in between two discrete functions

I am trying to plot the region in between two curves that I only have as discrete data, without plotting the curves corresponding to the data. In principle, I could interpolate the functions and then ...
0
votes
0answers
83 views
+50

Aligning plot axes of multiple figures results in different size of the FrameTicks

I defined a new FrameTicksStyle, but their size is changed when more than one figure are stacked vertically. However, the size is accepted when figures are stacked ...
0
votes
2answers
34 views

Color coding points on spherical plot

I have a matrix with each element having two components. First component is an array of six elements, each of multiple of 1/6 but less than 1. Second component has two elements representing spherical ...
1
vote
2answers
51 views

Combine points in 3D space by ListPointPlot3D

I have a array and I want to plot it in 3d space by ListPointPlot3D function. ...
1
vote
1answer
36 views

How can I plot the 3D diagram of x[t], x`[t] and a parameter ηb as the three axes?

I have ploted a 2D diagram with ParametricPlot for the equations. The codes ...
1
vote
0answers
130 views

Plot multiple solutions of a nonlinear equation

I have a nonlinear ordinary differential equation with two parameters c and R in the form of: ...
0
votes
0answers
79 views

How can I plot a growth curve? [on hold]

How would I draw a plo4 of the function $\qquad dN/dt = r\,N(t)$ in Mathematica? $N(t)$ is the number of individuals in the population at time $t$ and $r$ is the growth rate.
2
votes
3answers
66 views

One plot with different density functions in different regions?

As you can see in the following photo, there are 4 regions in the photo. Each photo has a different density function $T_i$. For ① $T_1=223+380 x+385y$ For ② $T_2=446+1080x+450y$ For ③ $T_3=108+...
1
vote
1answer
68 views

Why is an empty plot produced?

I am trying to plot the values of the functions f[x] and der[x], but I am getting an empty plot. I am new to both Mathematica ...
2
votes
2answers
94 views

Flow over the circle

I'm trying to plot a vector field over a circle, Particularly the vector field in this plot: ...
3
votes
1answer
107 views

Create surface by combining 2D curves

I'm trying to create a plot in which I look at the change of a curve as a function of a parameter. My problem is quite complicated so below you can see a simplifying example ...
2
votes
1answer
41 views

How to add the peak labels to an FTIR spectrum?

I have tried to plot the next FTIR spectrum and add their respective peak labels using Graphics and Show, but I think this doesn'...
3
votes
3answers
124 views

Changing the opacity of lines on a plot based on their value

Suppose I have the following Association, ...
3
votes
1answer
33 views

How to split overlapping values from different axis?

There are overlapping numbers in the plot below (the left down corner). The axis $T_e$ has the value $10^{0}$, and the axis $n_i$ has $10^9$. But the problem is that the values are imaged in the same ...
0
votes
1answer
101 views

Graphing the compound interest formula correctly

To preface, I'm very, very new to Mathematica. I've written a few functions to calculate compound dividends from stocks. ...
0
votes
1answer
64 views

Parameterization of boundary curve in Plot3D

I am considering a function of the form: u0 = p[1](Q1[1] - K1)/(p[1] - K1 + Sqrt[(K1)^2 - m1^2](1 - 2*alpha)); with p[1],Q1[1], and m1 being constant (set p[1] = 1, Q1[1] = 1/2, m1 = 0.1). Therefore,...
1
vote
0answers
52 views

Drawing a Hasse diagram

I have a binary set and I want to draw a Hasse diagram for it. How can this be done? This is the set: ...
5
votes
4answers
151 views

Plotting with different color for a single curve

How to plot a function $f(x)=\frac{3(4+x)}{3(2-x)-16}$ (say $x \in [-15,15]$ ) with the condition that i want to give different color for each of the following cases (i) when $\frac{x+4}{3x+10}>0$ ...
5
votes
2answers
129 views

Contour plot with positive and negative values

I want to make a simple contour plot with a function that takes positive and negative values (see below). I need the absolute values of the function to take the same shade in the contour plot (and ...
1
vote
0answers
39 views

How to scale the x-axis and y-axis non linearly, as per convenience? [on hold]

Check the x and y axis. I want a command in which I can create such a plot.
0
votes
0answers
26 views

How to get information about frequency of audio? [on hold]

I have two wav audios with different tonalities. I want to compare their frequencies. I need to plot the frequencies.
0
votes
0answers
45 views

Problems plotting labels

When i plot labels on a graph, then the text "field" is much bigger than the text itself. It gives some problems for me regarding placing the labels properly. Can someone help me fix this? see code ...
1
vote
1answer
36 views

Custom plot markers in DistributionChart

I would like to use the ChartElementFunction option of DistributionChart to plot data with a custom style that includes custom ...
0
votes
2answers
47 views

Plotting Numerical Integration of Multiple Variables

I am trying to plot a multiple variable integral. But somehow this is not working. This is my code. ...
0
votes
0answers
46 views

Mathematica Online and Exporting Animations

I am using the online trial version of Wolfram Mathematica. I have created an animation and I am trying to export this animation as a video. I have tried ...
0
votes
0answers
30 views

How to do a Tan plot with its ArcTan? [closed]

Plot[{Tan[s], ArcTan[s], s}, {s, -Pi/2, Pi/2}, {s, -15, 15}]. I want something like this: ??
0
votes
1answer
30 views

Avoiding distinct background appearing behind plo label text

I keep getting a light background behind my text when I use the PlotLabels option (see picture below). ...
0
votes
1answer
46 views

Why do I get error messages when I try to plot this function?

Question: Why do I get error messages such as "LessEqual::nord: Invalid comparison with 1. -1.59148 I attempted." when I try to plot the function f[z,k] defined below with for example the Plot ...
1
vote
0answers
34 views

Edit a code to become with combined animations

So in the following code, I would like to make the following animation. First: "t1" the blue line in the bottom together with "x,y,z" the blue lines in the top. So when "t1" finishes "z" finishes. ...
4
votes
1answer
298 views

How to fill the plot like this?

Plot[-x^3 + 2 x^2 + 8 x, {x, -5, 5}, Filling -> Axis] produces this What's the easiest way to change to something like this That is, I only need the two "...
1
vote
1answer
28 views

Combining two parameters in animation

I need to make the following animations on the torus : t=ParametricPlot3D[{ (3 + Cos[v]) Sin[u], (3+ Cos[v]) Cos[u], Sin[v]-12}, {u, 0, 2 Pi}, {v, 0, 2 Pi},PlotStyle -> Opacity[.4],MeshStyle->None] ...
1
vote
1answer
38 views

Hide a part of a graph

How to hide a part of a torus. I mean in the following torus ParametricPlot3D[{ (3 + Cos[v]) Sin[u], (3+ Cos[v]) Cos[u], Sin[v]}, {u, 0, 2 Pi}, {v, 0, 2 Pi}] I want to hide the shaded part
1
vote
3answers
64 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. ...
0
votes
2answers
46 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 ...
1
vote
1answer
38 views

The labels in the plot don't appear

the labels in the plot doesn't appear, axeslabel, plotlabel and plotlabels. ...
1
vote
1answer
70 views

Plotting an integral

...
2
votes
1answer
43 views

Polar Plot Features

how can I add the arrow symbol in Polar plot figure (see the attached file), from the point (0,0) to the tangent point? code example: ...
2
votes
1answer
62 views

Inserting several lines in determined places of a 3D plot

I have a special list instead of which I create another one by a Table ...
1
vote
1answer
130 views

How to plot this compound function?

I have a function w1(x1), w2(x2) and w3(x3), u1(x4) and u2(x5). Using these functions, I like to plot the deformed configuration of the structure, below is the undeformed configuration of the ...
0
votes
0answers
37 views

Plot a Polytope

I have to plot a 3d convex polytope, which is defined as the locus where a set of linear functions f_i are positive. My idea is to write something like ...
0
votes
0answers
73 views

Free energy surface plotting

Please feel free to move this to a different board if it doesn't fit the best here. I am working on trying to plot the free energy surface of ferroelectric materials, similar to the image below. Each ...
3
votes
1answer
40 views
1
vote
2answers
62 views

Incorrect results from simple `Plot`?

I came across this bizarre behaviour whilst noodling around - a change in 'Plot' results... ...
1
vote
1answer
63 views

How to make a diagram and get the exact intersection points at the same time?

Here is the code. A part of the diagram is not a function. ...
0
votes
1answer
40 views

Plotting a contour on a surface

I can plot the graph of a 3D function and the solution of an equation like in the following example: ...
3
votes
1answer
41 views

How can I make a scatter plot from a matrix with many y-axis values for each x-axis value?

Consider matrix A = {{0, 2.54343, 3.566, 4.2323, 2.3434}, {0.1, 6.432, 4.6465, 5.656, 1.34}, {0.2, 0.3423, 1.6342, 3.323, 2.04}}; The x-axis values ...