Graphics, Figures & TablesFigure colors fade when I....

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
lepagano
Posts: 12
Joined: Tue Dec 22, 2009 1:42 am

Figure colors fade when I....

Post by lepagano »

Hello all,

Another thing I have noticed when working with Figures is when I make a place a figure into Lyx (Float:Figure) and decide to clip the figure based on certain dimensions that I need the colors of the figure graphic get fadded. Why is this? The color of the image within Lyx looks different than that produced by the PDF when and only when I clip the image. Weird...can anyone explain this and give me a solution so my figure colors look correct??

Thanks so much.

Lara

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Figure colors fade when I....

Post by gmedina »

Hi,

please post a minimal working example showing the undesired behaviour,
1,1,2,3,5,8,13,21,34,55,89,144,233,...
lepagano
Posts: 12
Joined: Tue Dec 22, 2009 1:42 am

Figure colors fade when I....

Post by lepagano »

Sorry. I am still having the same issue here... My code is below... I have two subfigures with a box around each that fit the size of the figure. However, the top subfigure looks correct, while the bottom subfigure is smaller in size and there is white space on the right side (simply meaning that the subfig was reduced in size and does not match the size of the box). I checked all dimensions and they are correct. The one thing I did do to the subfigures was clip the figures. The top figure looked correct without me clipping to bounding box, while the second figure did not look right with this option checked. What happens is that the figure colors will look faded, but the size within the box is correct. If I check the box, the colors are correct, but the figure size within the box are incorrect. Has anyone ever had this issue???

Code: Select all

% Preview source code for paragraph 325

\begin{center}
%
\begin{figure}
\begin{centering}
\subfloat[FLEXPART-WRF]{%
\framebox{\begin{minipage}[t][3in]{4.5in}%
\includegraphics[width=4.5in,height=3in]{E:/Onslow/Analysis/20080609/Domain2_20080609_analysis/diff_d2_20080609_r_grey/Evans_part_4_d2_conc_20080611120000_air}%
\end{minipage}}}
\par\end{centering}

\begin{centering}
\subfloat[HYSPLIT]{%
\framebox{\begin{minipage}[t][3in]{4.5in}%
\includegraphics[clip,width=4.5in,height=3in,keepaspectratio]{E:/Onslow/Analysis/20080609/Domain2_20080609_analysis/diff_d2_20080609_r_grey/hysplit_d2_20080609_03_12_conc}%
\end{minipage}}}
\par\end{centering}

\centering{}\includegraphics[bb=0bp 20bp 340bp 110bp,clip,scale=0.4]{legend/legend_air_conc_evans_300_fixed}\caption{\label{fig:4km-Air-Concentration-11-12}4km Air Concentration (ng
m$^{-3}$) 12 UTC 11 June.}

\end{figure}

\par\end{center}

Thanks...

Lara
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Figure colors fade when I....

Post by gmedina »

Please follow the instructions on how to build a minimal working example (link provided in my previous reply).
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply