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
1answer
39 views

graph the surface and compute the area

I need to graph the surface z = (1+x^2)/(1+y^2) above the square region |x|+|y|<= 1. Then I must find its area. So far to graph ive tried this ...
0
votes
1answer
38 views

Labels not shown in a plot

I have the following code: ...
2
votes
1answer
29 views

Problem with using PlotLabels or PlotLegends as an option for Show[] [duplicate]

As mentioned in the documentation for Show[]: Show allows any option that can be applied to graphics to be given. I have the following code: ...
0
votes
1answer
42 views

Two functions with different independent variables in one Plot [closed]

I want to plot two functions with different independent variables in one Plot. The code below plots each line in different plot but I want both of them in one plot. ...
0
votes
0answers
31 views

Using NDSolveValue to solve the Helmholtz Equation on a Rectangle [closed]

The problem I am trying to solve is given by: $$ \Delta u+u=0 \quad\text{on}\quad D=[-3,3]\times[-3,3] $$ $$ u(x,y) = \sin(\frac{\pi x}{6}) \quad\text{on}\quad \partial D $$ I have a numerical ...
0
votes
0answers
22 views

Building and Plotting a discrete CDF

I'm trying to plot the CDF of a simple "nCr" experiment: A box contains 4 screws and 6 nails. Two items are drawn at random without replacement. Let X be the number of nails drawn. I built a ...
8
votes
5answers
311 views

Connecting dots in ListPlot3D in specific ways

The output of ListPointPlot3D is shown below: I only want to connect the dots in such a way that it forms a ring-like mesh. However, when I use ...
0
votes
1answer
61 views

How to plot random impulse train?

How to plot a random impulse train with random height and space? From the following code, I was able to get a random height graph and a random interval space graph. ...
0
votes
0answers
65 views

Plotting a pointed star [closed]

How do I plot x^(2/3)+y^(2/3)=1 over -1<=x<=1, -1<=y<=1? It should look like a 4 pointed star. I tried in Mathematica but my code is not working. Can someone please help.
0
votes
0answers
25 views

Output problem to define a Table with the valued assumed by an interpolating function [closed]

I have a little Input/Output problem defining a Table with the values of an interpolating function. I create the points to interpolate: ...
0
votes
1answer
55 views

Plot function not working for a simple funciton [closed]

I am trying to plot a function as simple as you can see, I've tried many ways but for some reason it doesn't work ` The plot coordinates dont even shown up
4
votes
2answers
114 views

Get parametervalues from ParametricPlot?

From an examplary plot plot = ParametricPlot[{1 Cos[s] , 2 Sin[s]}, {s, 0, 2 Pi}] I know how to get the plotted points ...
-1
votes
1answer
64 views

Evolution of different species of universe [closed]

Very poor knowledge of coding and Numerical solutions. please any body help me. I want to solve the following equations (a'[t])^2=(-κ/3)*(-(φ'[t])^2+V(φ)) a''[t]/a[t]=(-2κ/3)(1+3ω)((-Φ'[t])^2+V(φ)) φ''...
5
votes
3answers
319 views

How to fill the first region enclosed by a self-intersecting parametric curve

For an arbitrary self-intersecting parametric curve, how to construct the region at its first intersection. Thanks! ...
1
vote
2answers
58 views

Plot with Dsolve

I am trying to plot the solution to the Dolve at a position /. x -> 0 ...
3
votes
2answers
137 views

Colouring 3D columns defined by a piecewise function

I am using a piecewise function to define the height of columns. My goal is to make a nice picture that illustrates the different heights of the columns using color. Below in the picture I have ...
0
votes
0answers
48 views

how to find the FWHM of a peak from an equation and not data set? [closed]

I want to find the FWHM of a conductance peak I created on mathematica (see Figure). until now I used the FindMaximum to calculate the max of the peak. ...
6
votes
3answers
130 views

How to Add PopupMenu in manipulate?

Manipulate[Column[{ Plot[Sin[a x], {x, 0, Pi}], Plot[Cos[a y], {y, 0, 2*Pi}], Plot[Tan[a z], {z, 0, 3*Pi}]}], {a, 1, 10}] I want to put a popup menu here as Sin, ...
0
votes
1answer
91 views

Volumes of solids via rotation of regions between two 2D functions [closed]

I'm trying to see if Mathematica can simplify/automate finding the volume when the area between two 2D functions is rotated about an axis. For example: What is the volume of the solid when we rotate ...
3
votes
1answer
142 views

Plot a double integral

I'm trying to plot the result of a double Integral Plot[ Integrate[Integrate[x^7 (x - 2)^4 (x - 3)^9, x], x] ,{x, -10, 10} ] Results in a 22-degree ...
4
votes
2answers
115 views

Filling region with a pattern

I'm trying to fill the region to the left of a vertical line with a pattern (Diagonal is enough for my purposes) and a different pattern to the right. I've tried <...
5
votes
2answers
131 views

How to add errors in PairedBarChart?

I have: data01 = {0.012844725279853909`, 0.023794357025920716`}; data02 = {0.01740189577795908`, 0.027023265047026828`}; and, ...
3
votes
1answer
57 views

"Continuous" change of viewpoint from 2D to 3D view

I want to create a sequence of 3D plots so that a polygon lying in the plane z=0 is initially viewed from above (so that it looks like a 2D plot) and in the end from the standard viewpoint. I tried to ...
0
votes
4answers
160 views

Why can't mma be drawn in continuous form with the Fibonacci number general formula? [closed]

Of course, I know I can use Plot and DiscretePlot plot the built-in Fibonacci[x], but why ...
3
votes
2answers
110 views

Why is RegionPlot@ImplicitRegion taking so long to compute?

I have an equation as a function of $a$ and $\theta$ and would like to visualise the intersection between this graph and a flat plane at a height of 1 unit. I tried using the ...
3
votes
2answers
58 views

Blank plot with numeric data

I seem to be getting a blank plot even though the data provided is clearly numeric and plots fine with other data. I just don't see what is special about this data that results in a blank plot. ...
0
votes
1answer
68 views

DSolve and Plot [closed]

I was working on this equation to solve and plot it, but I'm little bit confuse?! ...
5
votes
4answers
211 views

DensityPlot3D with clear division negative/positive value but also value dependent

It is easy to obtain a clear positive/negative boundary, with, exemplary ColorFunction -> Function[{f}, If[f > 0, Red, Blue]] Do you have an idea how I can ...
0
votes
0answers
43 views

ContourPlot3D with variables within a ball [closed]

My attempt is (Mathematica 12.0) ...
0
votes
0answers
41 views

Can anyone tell me why the graph that's output is blank? [closed]

When the code is run it outputs a blank graph with the x and y axis both ranging from -1 to 1. ...
1
vote
0answers
41 views

Plotting a user-defined function with NMaximize

I am not sure what is going on with this plotting. I see that the following code works: ...
0
votes
1answer
74 views

How to check numerical values on a plot? [closed]

Suppose we have the model: ...
1
vote
0answers
53 views

Render image sequence in .png with trasparent background in WM

I make the premise that I am a newbie to WM. I need to render a sequence of 2d graphs in .png format with transparent background, the function depends on two variables that for simplicity I will call &...
3
votes
0answers
73 views

Do StreamPlot and VectorPlot work with Piecewise?

Executing StreamPlot[{Piecewise[{{-1, z < -1}, {z, 1 >= z && z >= -1}, {1, z > 1}}] , -x}, {z, -5, 5}, {x, -5, 5}] , I see an error message &...
2
votes
2answers
99 views

ParametricPlot inside of ParametricPlot [closed]

I don't know why the following is not working! The code has a function y[x] then I have g[t] then I want to plot ...
4
votes
1answer
62 views

Remove part of TemperatureMap Color function

I am using here some random contour plot as an example. I have this ContourPlot: ...
0
votes
0answers
49 views

Contour plot of a constant y? [closed]

I have the following data points, ...
2
votes
1answer
116 views

Combining VectorPlot and Graphics3D

I have a simple VectorPlot3D VectorPlot3D[{x, y, z}, {x, -1, 1}, {y, -1, 1}, {z, -1, 1}] Can I substitute the default arrows with Graphics3D object like: ...
0
votes
0answers
47 views

Rendering problem of a 3D plot [closed]

i have a little graphic problem. I had generate an interpolation function (with function Interpolating[...,Method->"Spline"]) called intspettro[1][L,w], in the variable {L,w} in the range,...
0
votes
1answer
57 views
0
votes
1answer
45 views

2 equations 3 unknowns. Implicit 2D Plot?

I have a hopefully simple question which I could not find any solution to yet: With two equations in three unkowns x,y,z I would like to plot their solution in x,y space. I cannot get rid of z ...
2
votes
3answers
364 views

Plot solutions to a trigonometric equation on the unit circle

For example, when solving the equation $$\sin(13x)+\sin(9x)=\cos(2x)$$ (by hand) you get the solutions $$ x= \begin{cases} \pm\tfrac{\pi}{4}+\pi n,\\ \tfrac{\pi}{66}+\tfrac{2}{11}\pi n,\\ \tfrac{5\pi}{...
0
votes
1answer
86 views

How to plot a smooth LogLogPlot of an oscillatory function having damping

I am trying to plot a damping solution with LogLogPlot ...
0
votes
1answer
37 views

Difficult on integration the normalization of a piecewise function

I have a little problem; I have defined the following Piecewise-function in the variables {x,L,w}: f[x_, L_, w_] := Piecewise[{{x w (L - x), 0 <= x <= L}}]; ...
0
votes
1answer
89 views

Mathematica ParametricPlot3D: plotting close surfaces

I am plotting two surfaces in Mathematica: green and yellow using ParametricPlot3D. Their intersection is the red curve. However, in the vicinity of the intersection curve, the colors and meshes mess ...
0
votes
0answers
39 views

Encountered SystemException["MemoryAllocationFailure"] while trying to plot a function

I have an expression that simplifies to the following expression, which I denote as a function X. ...
0
votes
0answers
56 views

How adjust the ratio between the units of axes?

Initially I thought that the function AspectRatio-> calibrated the ratio between the units axes, e.g. putting AspectRatio->1/2 I thought that the ratio x:y between units of the axes would be 1:2,...
1
vote
2answers
60 views

How to display Parametric plots in different regions together?

I cannot find how to plot the branches of a 'ParametricPlot' in different colors ...
0
votes
0answers
39 views

Is possible to put multiple independent legends into Graphics?

In the following Graphics I'd like put on the left and below another legend where I indicated the scale of the plot: I tried to do this putting into Inset the command PlotLegends->{} but ...
5
votes
3answers
184 views

How to manipulate the colours when joining points in ListPlot

Suppose I plot out two sets of data on the same graph as follows: ListPlot[{{{1, 1}, {2, 2}, {4, 4}}, {{3, 3}, {5, 5}, {6, 6}}}] The colours of the points change ...

1
2 3 4 5
269