Linked Questions

0
votes
1answer
186 views

Trying to plot predefined function list, PlotLegends option fails using legend list

I am trying to predefine the functions I want to plot. A minimal example of what I am trying to achieve looks like this: ...
0
votes
1answer
331 views

How to label/color multiple plots, generated by Table? [duplicate]

I have plotted ...
0
votes
1answer
70 views

Plot command uses same colors when applying pattern on list [duplicate]

When I do Plot[{fun1,fun2} ./ val1->1,{t,0,10}] then both plots are in the same color! If I use instead ...
0
votes
1answer
65 views

Failing to get colours in Plot [duplicate]

When I plot the functions generated by NestList, I do not see differently coloured lines, which I do if I explicitly list them out. I.e. with: ...
-4
votes
1answer
1k views

How can I plot a function that is the sum of another function?

I plotted m[t], but actually what I want to plot is g[t], which is a summation of m[t] from ...
-6
votes
1answer
173 views

Function plotting in Mathematica [closed]

I want to plot following function in Mathematica: $f(x) = \frac{x}{x+c}$ I used the following command. ListPlot[x/(x+c), {c, 1,10}, {x, 0, 10, 0.1}] But it ...
3
votes
0answers
59 views

Plotting list-valued interpolating function [duplicate]

I have an interpolation function which returns a list, e.g.: f=Interpolation[{{1,{1,2,3}},{2,{4,5,6}}}]; When I try to plot it, I get single-colored curves. <...
2
votes
0answers
28 views

Issue passing a list to last argument of ImplicitRegion (Scope issue?) [duplicate]

This is a very strange issue I'm having trying to pass a list as an argument to Mathematica's "ImplicitRegion" function. Here's the issue: ...
2
votes
0answers
23 views

Plotting list of functions while some of them are undefined [duplicate]

I'm struggling with the following code ...
2
votes
0answers
58 views

The use of Evaluate in NDSolve and Plotting the answer [duplicate]

I am having a bit of hard time understanding the use of Evaluate when plotting the output of NDSolve. From the documentation, I enter: ...
1
vote
0answers
61 views

Evaluate and PlotLegends

Related to this question here. I dont understand why Evaluated->True does not behave properly when also using PlotLegends. For example, running the code below ...
1
vote
0answers
612 views

Plot a loop using the same function [closed]

To generate a plot of multiple functions, I currently use this syntax: Plot[{Sin[x], Sin[2 x], Sin[3 x]}, {x, 0, 2 Pi}, PlotLegends -> "Expressions"] This ...
1
vote
0answers
42 views

PlotLegends in Plot of List passed as reference [closed]

When I pass the list directly into the Plot as Plot[{1 x, 2 x, 3 x}, {x, 0, 5}, PlotLegends -> {1, 2, 3}] the legends are But when I pass a reference to the ...
1
vote
0answers
37 views

Parametric plot refuses to assign unique plot styles [duplicate]

I want to plot the motion on n bodies. To do this I have set up three variables that return a list of variables to be evaluated by an ...
1
vote
0answers
34 views

How do I set a PlotStyle when plotting a Table of functions? [duplicate]

I want to plot several functions each with its own color. A MWE is as follows : Plot[{2 x, 3 x}, {x, 0, 1}, PlotStyle -> {Red, Green}] which works fine. Now, ...
1
vote
0answers
45 views

How to Plot with different styles different InterpolatingFunction [duplicate]

Im sorry for this question I'm new and it may be a stupid question, but I can't find nothing specific. I have these differential equations and NDSolve give me <...
1
vote
0answers
47 views

Colouring of multiple data sets in DiscretePlot [duplicate]

I noticed the following strange behaviour: Let us first define an array of functions g[k_] := {Sin[k], 2*Sin[k]} gg = g[k] When I plot this array of ...
0
votes
0answers
12 views

Through causes PlotStyle not to work properly with multiple functions [duplicate]

I think everything is demonstrated on this little example: Plot[{x, x^2, x^3}, {x, 0, 1}, PlotStyle -> {Black, Red, Blue}] produces plot with three lines, ...
0
votes
0answers
19 views

Plot of list of functions have the same colour [duplicate]

When I execute Plot[{(# + 1 &)[x], (2*# + 3 &)[x]}, {x, -2, 2}] I get the following plots of different colours (as per the documentation): But when I ...
0
votes
0answers
22 views

How to automate plotting of many functions? [duplicate]

Consider Plot[{Sin[x], Cos[x]}, {x, 0, 10}] versus Plot[Table[Sin[x + i Pi/2], {i, 0, 1}], {x, 0, 10}] The first command ...
0
votes
0answers
22 views

Why does Plot of Table uses the same color rather than Plot of explicit List? [duplicate]

The command Plot[{Sin[x], Cos[x]}, {x, 0, 10}, PlotRange -> {0, 1}] plots i.e. different functions plotted with different colors. Simultaneously ...
0
votes
0answers
28 views

Why these functions have the same color? [duplicate]

I have this code f[x_, n_] := Sum[ComplexExpand@Abs[Sin[x + k]], {k, 0, n}] Plot[Table[f[x, n], {n, 0, 5}], {x, -Pi, Pi}] but the graph is all of the same color ...
0
votes
0answers
31 views

Plotting multiple functions in one plot using iterative variable [duplicate]

This is a followup to this question. The following code Plot[{Sin[x], Sin[2 x], Sin[3 x]}, {x, 0, 2 Pi}] results in the following plot: The following code: <...
0
votes
0answers
72 views

How can I use Abs while plotting? [duplicate]

Equations: ...
0
votes
0answers
14 views

Multiple plot for 2 variables function [duplicate]

I have a 2 variables function as below: m[n_] := 1.5 n^2 V[n_, r_] := (m[n]*m[n])/((r)^3) On the range of r from 1 to 20 I want to make 30 plot (30 different ...
0
votes
0answers
24 views

Problem with PolarPlot and Table [duplicate]

If I have a set of numbers, for example grid = N[Table[n^2/2, {n, 3, 24}]] And want to plot that as circles I can either use Graphics[] and Circle[], or ...
0
votes
0answers
29 views

Filling not working when function in SetDelay [duplicate]

I want to use Plot with a SetDelay. Then Filling does not work. In the following, the first works, the second does not. I would like to get the second to work: ...
0
votes
0answers
71 views

Problem in Plot at start [duplicate]

The derivative can be used to calculate roots. However the same function cannot be plotted.The error is at start point of domain: ...
0
votes
0answers
23 views

Question about a ParametricPlot with a shading grey family of lines and/or different sizes [duplicate]

So, I have this function of the polar angle $\theta$, with a varying parameter $t$: {Cos[\[Theta]] (1 + Sin[t]), Sin[\[Theta]]} and I want to draw it in a ...
0
votes
0answers
87 views

Tooltip and table in plot [duplicate]

Plot[Tooltip@{1.` k^2, 1.2` k^2, 1.4` k^2, 1.6` k^2, 1.8` k^2, 2.` k^2}, {k, -2, 2}] gives But why does ...

15 30 50 per page