Support for pngcairo in draw, and backward compatibility issues
Subject: Support for pngcairo in draw, and backward compatibility issues
From: Mario Rodriguez
Date: Thu, 06 Jan 2011 01:20:37 +0100
El mi?, 05-01-2011 a las 14:38 -0500, Mark H Weaver escribi?:
> Here is a small fix to interfaces/emacs/imaxima/imaxima.lisp to use
> 'dimensions' instead:
>
I never use emacs, and I didn't know of the existence of this problem.
It's now fixed.
>
> Second: the {eps,pdf}_{width,height} options, formerly specified in cm,
> have been replaced by 'dimensions' which is specified in cm/100. The
> code still accepts the old options, but fails to do the necessary
> conversion from cm to cm/100.
Certainly, there weren't any transformations here. Fixed.
> The following patch does the necessary conversion, and also silences the
> warnings about 'pic_height' and 'pic_width'. The reason for the latter
> is that wxMaxima uses those options, and it looks bad to see the
> warnings before every inline plot. Yet how can wxMaxima fix this bug
> without breaking support for older versions of Maxima? I suggest that
> we wait a few releases before issuing these warnings.
Not necessarily. wxMaxima 0.8.7 has been changed appropriately; in fact,
the windows binary doesn't have this problem. I think wxMaxima's new
version will be released soon.
Since the warnings in wxMaxima will disappear in short, I prefer to
maintain them.
> Finally, attached below is a patch to add support for gnuplot's pngcairo
> terminal to draw. The plots look much better, especially when drawing
> direction fields with drawdf. Many small arrows look very bad without
> anti-aliasing.
Nice contribution. PNG's look really better.
>
> This patch also includes a small hack to allow users of wxMaxima to
> easily make use of pngcairo for inline plots: if $draw_use_pngcairo is
> true, then pngcairo will be used when 'png' is requested.
I have included this variable in draw.lisp as you suggested, but I think
this fact should be controlled from wxMaxima. Let $draw_use_pngcairo be
defined here for the moment.
> [There's one other minor fix here as well: the gnuplot terminal options
> "enhanced truecolor" were specified when drawing "png" directly, but
> not when using $draw_file. The following patch fixes that.]
Yes, I forgot to include this option in $draw_file.
>
> Thanks,
> Mark
No, thanks to you.
--
Mario