Skip to content

Reversing axis in a log plot (PR#7894)

1 message · Martin Maechler

#
UweL> Please find attached my proposal for a bugfix. The
    UweL> experts might to better, though.

    UweL> Uwe Ligges

Thank you, Uwe!

Yes, your fix works, and yes, it can be improved (e.g., no need for
the 'atr'; no 'reversed' when in the linear case, ..)

Also, there won't be any warning either anymore,
since
	plot(1:3, exp(1:3), xlim = c(30,1))
also gives no warning.

You'll find the fixed plot.c in tomorrow's snapshot.

Martin

BTW:  The whole thing {axis reversion} doesn't work in S-plus
      {doing a non-sensical plot, with tons of warnings}