comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Clipping woes with hardware fonts...
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Clipping woes with hardware fonts... [message #9401] Mon, 30 June 1997 00:00 Go to next message
Richard G. French is currently offline  Richard G. French
Messages: 65
Registered: June 1997
Member
This is a multi-part message in MIME format.
--------------2BAC991D606F98A4C610A3BB
Content-Type: text/plain; charset=us-ascii
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Transfer-Encoding: 7bit

I am having a problem with clipping. As I understand it, XYOUTS has
clipping turned off
by default, but setting NOCLIP=0 should turn clipping back on and
prevent text from
being written outside the plot axes. I've discovered that this works
fine as long as you
use Hershey fonts, but it does not work when you use hardware fonts.
Here is a
program illustrating the problem:

; sample code to demonstrate peculiar clipping behaviour.
; When hardware fonts are turned on, clipping is not handled properly.

!p.multi=[0,1,2]

!p.font=-1 ; turn off hardware font
plot,[0,1,2]
xyouts,.5,2.05,'this shows up' ; label off the top
xyouts,1.5,2.05,'this is clipped properly',NOCLIP=0 ; turn on clipping

!p.font=0 ; turn on hardware font
plot,[0,1,2]
xyouts,.5,2.05,'this shows up' ; label off the top
xyouts,1.5,2.05,'this should not show up',NOCLIP=0 ; turn on clipping

end


;******************************
I have not seen this documented as a 'feature' and it is causing lots of
problems with
my plots. I suspect that there is a workaround using the !p.clip array,
but I have not
tried to figure it out yet. Am I alone in having had this problem?

Dick French
rfrench@ahab.wellesley.edu

--------------2BAC991D606F98A4C610A3BB
Content-Type: application/x-unknown-content-type-IDLprogramFile; name="noclipbug.pro"
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="noclipbug.pro"

OyBzYW1wbGUgY29kZSB0byBkZW1vbnN0cmF0ZSBwZWN1bGlhciBjbGlwcGlu ZyBiZWhhdmlv
dXIuIA0KOyBXaGVuIGhhcmR3YXJlIGZvbnRzIGFyZSB0dXJuZWQgb24sIGNs aXBwaW5nIGlz
IG5vdCBoYW5kbGVkIHByb3Blcmx5Lg0KDQohcC5tdWx0aT1bMCwxLDJdDQoN CiFwLmZvbnQ9
LTENCnBsb3QsWzAsMSwyXQ0KeHlvdXRzLC41LDIuMDUsJ3RoaXMgc2hvd3Mg dXAnCQkJCTsg
bGFiZWwgb2ZmIHRoZSB0b3ANCnh5b3V0cywxLjUsMi4wNSwndGhpcyBpcyBj bGlwcGVkIHBy
b3Blcmx5JyxOT0NMSVA9MAk7IHR1cm4gb24gY2xpcHBpbmcNCg0KIXAuZm9u dD0wCQkJCTsg
dHVybiBvbiBoYXJkd2FyZSBmb250DQpwbG90LFswLDEsMl0NCnh5b3V0cywu NSwyLjA1LCd0
aGlzIHNob3dzIHVwJwkJCQk7IGxhYmVsIG9mZiB0aGUgdG9wDQp4eW91dHMs MS41LDIuMDUs
J3RoaXMgc2hvdWxkIG5vdCBzaG93IHVwJyxOT0NMSVA9MAk7IHR1cm4gb24g Y2xpcHBpbmcN
Cg0KZW5kDQo=
--------------2BAC991D606F98A4C610A3BB--
Re: Clipping woes with hardware fonts... [message #9487 is a reply to message #9401] Tue, 01 July 1997 00:00 Go to previous message
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
Richard G. French wrote:
>
> I am having a problem with clipping. As I understand it, XYOUTS has
> clipping turned off
> by default, but setting NOCLIP=0 should turn clipping back on and
> prevent text from
> being written outside the plot axes. I've discovered that this works
> fine as long as you
> use Hershey fonts, but it does not work when you use hardware fonts.

I tend not to use the hardware fonts on-screen because they cannot be
rotated - it makes Y-axis labels look pretty crude. Usually one of the
Hershey fonts suffices, and when I want to make hard copy, I use one of
the Postscript fonts.

I realize that's not much help: sorry.

Cheers,
Liam.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Clipping woes with hardware fonts...
Next Topic: IDL & F90

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:24:26 PDT 2025

Total time taken to generate the page: 0.00699 seconds