MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: general

  • To: mathgroup at smc.vnet.net
  • Subject: [mg76836] Re: general
  • From: Szabolcs <szhorvat at gmail.com>
  • Date: Mon, 28 May 2007 01:03:51 -0400 (EDT)
  • Organization: University of Bergen
  • References: <f3biji$3s2$1@smc.vnet.net>

dimitris wrote:
> http://reference.wolfram.com/mathematica/tutorial/IncompatibleChanges.html
> 
> In the part of changes between 5 and 6 we read
> 
> "The graphics functionality has significantly changed. For
> compatibility purposes, use <<Version5`Graphics` to restore graphics
> capabilities from Mathematica 5. To restore the Mathematica 6 graphics
> capabilities, use <<Version6`Graphics`."
> 
> I think many will found useful above information.
> 
> Dimitris

Oh yes, it is useful!

The package redefines $DisplayFunction to Display[$Display, #, "MPS"]&. 
For me, the missing piece was "MPS".

But unfortunately some things are not working ... like exporting 
graphics. The resulting file contains "-Graphics-", literally.

And PostScript[] does not work either. Does anyone know how to produce 
something like the following in Mathematica 6?

Graphics[
   { AbsoluteThickness[10],
     PostScript["0 setlinecap"],
     Line[{{-0.3, 0}, {-0.3, 1}}],
     PostScript["1 setlinecap"],
     Line[{{0, 0}, {0, 1}}],
     PostScript["2 setlinecap"],
     Line[{{0.3, 0}, {0.3, 1}}] },
   AspectRatio -> Automatic, PlotRange ->
   {{-0.5, 0.5}, {-0.2, 1.2}}] // Show

The built-in PostScript rasteriser does not seem to support setlinecap, 
but the results can be seen when the graphics are exported to EPS.

setlinecap and setlinejoin were the only reasons I used PostScript[].

Mathematica 6 could simply ignore PostScript[], except when exporting to 
EPS ... of course I can see the difficulties with this as some new 
features, like Opacity, are not even supported when exporting to EPS, so 
EPS can no longer be the main export format, and therefore it would be 
an inconsistency to allow features that only work with this format ...


  • Prev by Date: Re: Quadratic form: symbolic transformation
  • Next by Date: Re: Quadratic form: symbolic transformation
  • Previous by thread: general
  • Next by thread: Re: Mathematica V6. ComplexMap