Jeff
Jeff

Reputation: 19

Desmos Graph Color with Command

Is there a command like y=x {color: black} to change the graph colors rather than going into the settings and changing every single graph manually.

Searches only seem to show to change colors through the settings button.

Upvotes: 1

Views: 269

Answers (2)

Michael Savage
Michael Savage

Reputation: 38

By graphs, do you mean the expressions? Not sure if this is what you mean, but press ctrl+shift+i, and go onto console. The run this:

for (let i = 1; i < Calc.getExpressions().length+1; i++) {
  Calc.setExpression({id:i,color:'#000000'});
}

It will change all expressions to black, but you can change color value to a different hex code However, this causes some errors on some expressions, (e.g. this that don't have colors) and isn't foolproof.

Upvotes: 0

Julie
Julie

Reputation: 11

This isn't quite what you're looking for, but it might help. I create a custom color and use it for all related graphs. Instead of changing each graph individually,I change the custom color to a new color, which changes all the graphs at once. There's probably a better way, but I'm fairly new to Desmos, so that's the best I can do.

Upvotes: 1

Related Questions