2
$\begingroup$

I have a question. When I use "Filling"

Plot[Evaluate[{x^2, x}], {x, 1, 2}, PlotRange -> All,  Filling -> {1 -> {2}}]

One of the functions appears in orange and the other one in blue, there is some way to make that both appear in the same color?

I read the documentation but I can't find a way to do this.

$\endgroup$
4
$\begingroup$

I think what you want is:

Plot[Evaluate[{x^2, x}], 
    {x, 1, 2},
    PlotRange -> All,
    Filling -> {1 -> {2}},
    PlotStyle->{Blue, Blue}
]
| improve this answer | |
$\endgroup$
  • 2
    $\begingroup$ You can simplify the option to PlotStyle -> Blue $\endgroup$ – Bob Hanlon Jul 1 at 3:54
  • 2
    $\begingroup$ Also note that Evaluate does nothing here. $\endgroup$ – Sjoerd Smit Jul 1 at 10:23

Not the answer you're looking for? Browse other questions tagged or ask your own question.