Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Colormaps and Export_fig

Subject: Colormaps and Export_fig

From: Peter

Date: 26 Nov, 2010 17:35:05

Message: 1 of 2

Hi there,

I have a problem in Matlab, and would be very grateful for some advice:

I have plotted a filled contour plot of seawater temperature against depth and location. I have applied a jet colormap. I have then overlayed the filled contour plot with black contour lines of potential density. Due to Matlab only allowing one colormap per plot, I have used freezeColors to allow both to plot together.

However when I now use expot_fig -eps -q101 with the painters renderer to save the image as a eps, I get an error saying the RGB colorspace is not supported, and the filled contours appear white in the saved figure. Unfortunately if I use one of the other renderers (opengl or zbuffer), there is a loss of quality that I really can't afford.

I realise the error is due to using freezeColors, but this is vital to get the filled contour plot and the black contour lines to plot on the same figure.

Is there anyway around this issue and produce a high, publication quality image with two colormaps?

Many thanks for the help.
Pete

Subject: Colormaps and Export_fig

From: Initial Conditions

Date: 30 May, 2013 15:52:09

Message: 2 of 2

"Peter " <pedd1v07@soton.ac.uk> wrote in message <icor49$bdl$1@fred.mathworks.com>...
> Hi there,
>
> I have a problem in Matlab, and would be very grateful for some advice:
>
> I have plotted a filled contour plot of seawater temperature against depth and location. I have applied a jet colormap. I have then overlayed the filled contour plot with black contour lines of potential density. Due to Matlab only allowing one colormap per plot, I have used freezeColors to allow both to plot together.
>
> However when I now use expot_fig -eps -q101 with the painters renderer to save the image as a eps, I get an error saying the RGB colorspace is not supported, and the filled contours appear white in the saved figure. Unfortunately if I use one of the other renderers (opengl or zbuffer), there is a loss of quality that I really can't afford.
>
> I realise the error is due to using freezeColors, but this is vital to get the filled contour plot and the black contour lines to plot on the same figure.
>
> Is there anyway around this issue and produce a high, publication quality image with two colormaps?
>
> Many thanks for the help.
> Pete

Pete,

I know this is a while back now, but did you have any luck with this? I have exactly the same problem!

Regards,

Dom

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us