For Programmers: Free Programming Magazines  


Home > Archive > Matlab > March 2006 > black background in copy paste









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author black background in copy paste
stefan bleeck

2006-03-30, 8:04 am

How can I copy/paste figures with a white background. No matter what
color I set (set(gcf,'color') it always comes out with a black
background which is annoying because I cant read the legend.
This happens for both settings of "InvertHardcopy"

windows mamachineXP)
Edit/Copy Options/Clipboard format is set to "Bitmap"

Is this a bug or am I missing something?

many thanks
Stefan
stefan bleeck

2006-03-30, 8:04 am

Onse solution to this is to set the figure property "renderer" to
"painters". this is inconsistent in Matlab 7.2 from older versions.

stefan bleeck wrote:
>
>
> How can I copy/paste figures with a white background. No matter
> what
> color I set (set(gcf,'color') it always comes out with a black
> background which is annoying because I cant read the legend.
> This happens for both settings of "InvertHardcopy"
>
> windows mamachineXP)
> Edit/Copy Options/Clipboard format is set to "Bitmap"
>
> Is this a bug or am I missing something?
>
> many thanks
> Stefan

Michael Wild

2006-03-30, 8:05 am

stefan bleeck wrote:
> How can I copy/paste figures with a white background. No matter what
> color I set (set(gcf,'color') it always comes out with a black
> background which is annoying because I cant read the legend.
> This happens for both settings of "InvertHardcopy"
>
> windows mamachineXP)
> Edit/Copy Options/Clipboard format is set to "Bitmap"
>
> Is this a bug or am I missing something?
>
> many thanks
> Stefan


easy solution: don't do copy-paste...

michael
stefan bleeck

2006-03-31, 4:10 am

Thanks Michael for that helpful comment. Alas, sometimes it would be
incredible helpful to have this tool. (especially since there is
sometimes apparently no other way to save a figure in high quality to
another application (except screen hardcopy), "save as" produces so
many errors that it is unusable)

To the first reply: Unfortunatly the "painter" renderer only works
when there is no alpha map present.

There really seems to be no way to do it :(

Michael Wild wrote:
>
>
> stefan bleeck wrote:
> what
>
> easy solution: don't do copy-paste...
>
> michael
>

Richard Quist

2006-03-31, 7:06 pm


"stefan bleeck" <bleeck@gmail.com> wrote in message
news:ef2e65b.-1@webx.raydaftYaTP...
> How can I copy/paste figures with a white background. No matter what
> color I set (set(gcf,'color') it always comes out with a black
> background which is annoying because I cant read the legend.
> This happens for both settings of "InvertHardcopy"
>
> windows mamachineXP)
> Edit/Copy Options/Clipboard format is set to "Bitmap"
>
> Is this a bug or am I missing something?
>
> many thanks
> Stefan


Set the format to 'Metafile'; bitmaps don't support transparency.
--
Richard Quist
Software Developer The MathWorks, Inc.


stefan bleeck

2006-03-31, 7:06 pm

Richard Quist wrote:
>
>
>
> "stefan bleeck" <bleeck@gmail.com> wrote in message
> news:ef2e65b.-1@webx.raydaftYaTP...
> what
>
> Set the format to 'Metafile'; bitmaps don't support transparency.
> --
> Richard Quist
> Software Developer The MathWorks, Inc.
>


that unfortunatly destroys the figure information. The result is
garbage colors, wrong z-values and no transparancy.

the only way I found so far is saving the figure as a "png" file. for
some reason that looks acceptable (in powerpoint).
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com