Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.6K Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

[✓] Change the colors of previously built graphic objects?

Posted 5 years ago

Situation:

g1=ParametricPlot[f1[t],{t,0,1}];
g2=ParametricPlot[f2[t],{t,0,1}];

Long afterwards, I want to display both g1 and g2 on the same graph, in different colors. Something like

Graphics[{Red,g1,Green,g2}];

The problem is that g1 or g2 has InputForm

Graphics[{{{}, {}, {Hue[0.67, 0.6, 0.6], Line[{{0., 0.}, {0.00030669751239636143, 0.0003066975075881948}, .....

which has the color built into it.

POSTED BY: David Golber
2 Replies
Posted 5 years ago

That seems to do it. Thank you very much.

POSTED BY: David Golber

You may try with a replacement rule:

Show[g1 /. _Hue -> Red,
 g2 /. _Hue -> Green]
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard