Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

2-D Surface Plot with Logarthmic Color Scale

Please login with a confirmed email address before reporting spam

In a 2-D surface plot is it possible to apply a logarithmic color scale rather than a linear one? I have data clustered at very low values but still wish to represent higher values as well. It seems like a simple enough task I just could not figure out how to do it. Thanks in advance for any advice!

3 Replies Last Post 5 ott 2016, 09:28 GMT-4
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 17 giu 2011, 17:15 GMT-4
Why not plot the logarithm of whatever you're plotting now? Wouldn't that achieve what you want?
Why not plot the logarithm of whatever you're plotting now? Wouldn't that achieve what you want?

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 20 giu 2011, 08:07 GMT-4
Jean-Francois, thank you for your advice. That worked perfectly.
Jean-Francois, thank you for your advice. That worked perfectly.

Please login with a confirmed email address before reporting spam

Posted: 8 years ago 5 ott 2016, 09:28 GMT-4
Not to be nit-picky but plotting the log(x) is not the same as plotting x on a log scale. In the former case, the units become a bit obscure and the legend is a tad wonky to interpret. In the latter case the units stay the same and the legend is annotated with true values of x. Yes, if you just want a picture, a subtle point like this doesn't matter. Plot log(x) and just deal with it. But if Comsol wants to do professional visualization within the tool, then it should care about such subtleties.
Not to be nit-picky but plotting the log(x) is not the same as plotting x on a log scale. In the former case, the units become a bit obscure and the legend is a tad wonky to interpret. In the latter case the units stay the same and the legend is annotated with true values of x. Yes, if you just want a picture, a subtle point like this doesn't matter. Plot log(x) and just deal with it. But if Comsol wants to do professional visualization within the tool, then it should care about such subtleties.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.