Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

0
votes
0answers
9 views

How would one go about plotting this parameterized curve using numerical resources (analitically it's too hard)?

I'm working with the system of differential equations: $$\begin{align*} \left\{ \begin{array} { l l } { (u')^2 + (v')^2 = 1 } \\ {u'v'' - u''v' = -v' + u' } \end{array} \right. \end{align*}$$ Where $...
1
vote
1answer
24 views

ListLinePlot of a 3D function, over one of the arguments, with a range of values for the other 2 arguments

I have a function of 3 arguments mu[kx_, ky_, lambda_] := -(kx^2 + ky^2) - (kx^2*(kx^2 + 5*ky^2)*lambda)/(kx^2 + ky^2)^4 I want to plot ...
3
votes
1answer
31 views

How do I plot a distance map in $R^2$ to a curve given in form $y=f(x)$?

As in the title, I'd like to display image using DensityPlot representing distance to a given curve, e.g., $y=x^2$. I find it difficult to derive distance ...
1
vote
1answer
19 views

How to plot expression in x axes and variable in y axes [duplicate]

Plot[1.88 (a^(1/3)) , {a,-0.56,0.56}] I unable to plot the expression in x axes and variable in y axes
5
votes
2answers
134 views

Problem with Graphics`PolygonUtils`PolygonCombine

Writing: Normal@ParametricPlot[{x, x^2 t}, {x, 0, 2}, {t, 0, 1}] /. p : {__Polygon} :> Graphics`PolygonUtils`PolygonCombine[p] I get: but if I write: ...
0
votes
1answer
40 views

Plotting a family of functions with For

I'm trying to plot a family of functions differing only by a constant $c$. The function is: $2x^2-5x+c$. In order to plot them I'm using the following code: ...
2
votes
2answers
44 views

Using a table within a RegionPlot3D to plot multiple cubes

Here's some code that will produce a cube: ...
0
votes
1answer
33 views

Contour Plot with logarithmic scale [duplicate]

I am trying to plot an equation using contour plot with x-axis in logarithmic scale. ...
1
vote
2answers
27 views

Change distance between vertical y-axis label and plot

I'm trying to do something that should be fairly straightforward: having a vertical y-axis label. My problem is, it creates a ridiculously large space between the label and the axis (exactly what I'm ...
5
votes
2answers
150 views

Undesirable grid appears when ParametricPlot is exported as PDF

Writing: plot = ParametricPlot[{x, Min[1, 2] t}, {x, 0, 2}, {t, 0, 1}, PlotRange -> {{0, 2}, {-1, 2}}] I get: but if I write: ...
2
votes
1answer
65 views

unmatched output for density plot

I am plotting Abs[R] on y-axis vs k on x-axis with the following code ...
-2
votes
0answers
89 views

Is it possible to take the square root of this metric?

I have a metric which describes the space-time continuum in a universe I've constructed: $$ds^2=-a_0^2dt^4+dx^2+dy^2+dz^2$$ I want to visualize what this looks like. Plotting just the x, y and t ...
0
votes
1answer
31 views

How do I assign a value to a constant before plotting, without affecting other plots? [on hold]

I would like to Plot and equation on a single chart, with this equation taking multiple forms because I set the value of a constant differently in each case. The way I am doing it now seems too ...
0
votes
0answers
23 views

Import xlsx and plot(x1,y1) and x2,y2 with different row length [on hold]

I'm trying to import an xlsx file with 4 columns of different sizes: x1,y1,x2,y2. Then I want to do a plot of x1 vs y1 and x2 vs y2 in the same plot.
1
vote
2answers
59 views

Changing colors and scale in a Contour Plot

I am struggling with a very basic functionality of Mathematica. I have the following code: ...
1
vote
1answer
42 views

ListPlot failure

Please examine the screenshot below. In the first plot, the last point is split into two (?!) erroneous points. The second plot is correct. Can you reproduce/fix the error? ListPlot failure For your ...
6
votes
1answer
295 views

Why is SVM unable to separate linearly separable data?

I have two sets of data, namely blue and yellow. I manually added a point {8, -3} to the blue data. ...
1
vote
2answers
38 views

Showing variable values on a 3D Plot

I am running a 3D plot a 100 times to show the dynamics of two undetermined variables (cM and cR) for a 100 values of ...
3
votes
1answer
35 views

Parametric Plot - Opacity Changing Along Line

How would one have the trajectory in a parametric plot go from a higher to lower opacity? Suppose the following code for example: ...
0
votes
2answers
41 views

Plotting Several Functions w.r.t. Sqrt[variable]

I have the following plots in Mathematica but I would like to plot them with respect to Sqrt[s] instead of s. How would I do that? ...
0
votes
2answers
50 views

Plotting many solutions of FindRoot

To an earlier problem, @Rhermans provided the following solution: ...
1
vote
1answer
15 views

How to use Manipulate for a Plot and Equation Simultaneously

I would like to use Manipulate to Plot a figure and also give me the result of an equation simultaneously. In my case, this is ...
2
votes
1answer
22 views

How to edit “labeled” number in Manipulate plot?

i have a question, i use a ManipulatePlot function, i added a number after a slider by adding: Appearance->"Labeled" The whole code is here: ...
0
votes
0answers
62 views

Two curves in the same plot with a defined function

I have made a database of several rods which have several physical variables and the function below plots all those variables of just one rod. ...
3
votes
3answers
64 views

Plot segments at the ends of the graph

Writing: ParametricPlot[{x, x}, {x, 1, 2}, AxesOrigin -> {0, 0}] I get: I would like to know if there was a command to add after ...
2
votes
1answer
55 views

BodePlot of Warburg impedance - Errors

I'm trying to plot the Bode diagrams of the Warburg impedance (A=1, s=jw): $$Z=\frac{A}{\sqrt{\omega}}+\frac{A}{j\sqrt{\omega}}$$ $$Z=A \sqrt{\frac{j}{s}}+\frac{A}{j}\sqrt{\frac{j}{s}}$$ ...
4
votes
1answer
126 views

How can I seamlessly stitch two separate 3D contour plots?

I am trying to make a 3D contour plot of a complicated function over a large parameter range, and I am struggling a bit to make it compute nicely and in a reasonable length of time: more specifically, ...
3
votes
1answer
24 views

How to change size of an image in the background of a graph?

I'm trying to put a background image in a graph I've made but I can't figure out how to resize it so it fits the whole background, rather than just the section. The code I have so far is ...
1
vote
0answers
51 views

Plotting a “Competitive Landscape” Business Grid in Mathematica? [on hold]

Question: Is there a way to create a graph similar to the one below? Some ideas: Each business is a point on the plane $[0,1] \times [0,1]$. Each point on the plane can be represented as an ...
4
votes
3answers
316 views

How to display a finer sphere in Graphics3D?

I'm trying to display two highly zoomed-in spheres with the following code: ...
1
vote
1answer
54 views

BodePlot with wrong phase [on hold]

I'am trying to plot the function: BodePlot[1/(1 + 0.1 s), s] The phase plot is wrong (I'm using Mathematica 11.2): Why does this happens and how can I get the ...
0
votes
1answer
36 views

DateListPlot Questions

I'm attempting to use DateListPlot to label VR headset PPI (pixels per inch) over time. I so far have the following ...
3
votes
2answers
31 views

How to get appropriate scaled image from graphic rectangle

I am trying to make an image out of a graphic, which is a rectangle with given size. However, the dimension of the image do not correspond to the size given to the rectangle: ...
0
votes
0answers
61 views

Mathematica giving incorrect result for implicit equation $x^{\frac{2}{3}} + y^{\frac{2}{3}} = 1$? [duplicate]

When I type the following implicit equation into Mathematica I only get 'one quarter' of what the resulting plot should look like, i.e., I only get the upper-right quadrant. ...
0
votes
0answers
50 views

All I want to do is just plot a graph [closed]

All I did was follow the wolfram documentation and it completely fails every single time no matter how I modify it. All I want to do is see a plot of both real branches of the Product Log in a ...
1
vote
1answer
67 views

Coloring Points in a DensityPlot/ListDensityPlot

I have a PDE system, whose functions are $a=a(t, x, y)$, $b=b(t,x,y)$, and $c=c(t,x,y)$, with Dirichlet null boundary conditions and initial conditions in the form of circle. The respective code ...
2
votes
2answers
61 views

Problem using NonlinearModelFit to 2 coupled differential equations

I am trying to find the parameters of a set of differential equations given experimental data. Before I tackled my set of 12 equations, I tried to solve a simpler and similar 2 equation system but ...
6
votes
4answers
121 views

Combining LineLegend and BarLegend in CountourPlot

So I am having a similar problem to the one in this question but the solutions therein are of no use. Consider a basic ContourPlot with an automatic BarLegend ...
2
votes
2answers
53 views

Pixelized 2d projection of 3d list

I would like to visualize some 3d data. What I want is similar to ListPlot3D[{{1, 1, 1, 1}, {1, 2, 1, 2}, {1, 1, 3, 1}, {1, 2, 1, 4}}, Mesh -> All] however, ...
1
vote
1answer
72 views

Plotting for various parameter values with single code

I am trying to plot for four different values of a parameter with the following code ...
2
votes
1answer
57 views

Placing plot legend in front of the axes

When I plot a function with legend and axes, the legend gets placed behind the axes (see example below) I would like to have the legend sitting in front of everything. Is there a parameter that ...
0
votes
1answer
49 views

Empty plots from my dynamics

I am trying to plot following dynamics but it does not work. Please provide some tips to correct my code. Thank you. ...
0
votes
1answer
36 views

Inclusion of color bar

I want to include color bar for my plot. I have done the plot using the following code: ...
1
vote
2answers
63 views

Basic 3D Graphics Question

This is probably a very basic question, but I haven't been able to get it to work yet. I am trying to create a filled 3D space in the region $\qquad 0.1 < x < 9.2,\ 0.026 < y < 28.97,\ 0 &...
0
votes
1answer
31 views

Use Solve for two Functions to find 1 common Variable

I have 2 functions that look like this: F[t_,d_]:= 10+t+2d G[t_,d_]:= 5+t+d I'd like to solve this in such a way to know for which t both Function have the Same value. I assume that this won't be ...
0
votes
0answers
38 views

Mesh does not have a valid dimension as a plotting domain in 11.0

In Version 11.0, it appears that one cannot plot over a mesh. The following code worked in Version 10.2: ...
4
votes
2answers
97 views

joining data points - added lines

I have a set of data {x,y,stdev}, and I want to have a SINGLE line joining the data points. Whenever I put Joined -> True while running ListLogLogPlot, I get all these extraneous lines that I'm not ...
0
votes
1answer
39 views

Plotting an equation with three independent in Cylindrical coordinates

I have a function in cylindrical co-ordinate with 3 independent coorrdinates, give by: ...
3
votes
1answer
55 views

How to Join Dynamic Graphics

I am just getting started with Mathematica and I want to join two dynamic plots that I'm playing with. They are generated by the following code: ...
1
vote
1answer
74 views

I don't understand the Epilog function

I had the same question as How to add a vertical line to a plot and I have read the first answer using the Epilog function. This answer solved my problem and my code is now working. However, I don't ...