EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: EDM xyGraphClass yLabel displaying backwards
From: Carl Schumann <[email protected]>
To: [email protected]
Cc: "William L. Marsh" <[email protected]>
Date: Mon, 13 Oct 2008 14:34:15 -0500
Hi,

We are upgrading from a 3-year old version of EDM to the current version. For the xyGraphClass we find that the yLabel is displayed properly by the old version of EDM but backwards by the new version of EDM. E.g., "current(mA)" becomes ")Am(tnerruc". The spacing between letters is also off with the new version as well. I did some initial investigation of the new EDM and also compared old and new EDM code. The relevant routine within EDM's source is xyGraphClass::drawYlabel(...). From the old version the code for moving along the y-axis ...
    lY = plotAreaY + ( plotAreaH + lW ) / 2;
    for ( i=0; i<strlen(label); i++ ) {
      lY -= inc;
From the new version the code for moving along the y-axis ...
    lY = plotAreaY + ( plotAreaH - lW ) / 2;
    for ( i=0; i<strlen(label); i++ ) {
      lY += inc;
The difference in code is what accounts for the backward text. So now I am wondering what to do about this issue. We don't really want to maintain our own version of EDM with code changes. Guidance please. Thank you for your time.

Sincerely,
Carl Schumann





Replies:
Re: EDM xyGraphClass yLabel displaying backwards John Sinclair

Navigate by Date:
Prev: RE: Newport XPS motion controllers Mark Rivers
Next: How have folks been dealing with the Channel Archiver's 2GB index file limit? Tom Cumming
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Building CAP5 under windows or cygwin Andrew Johnson
Next: Re: EDM xyGraphClass yLabel displaying backwards John Sinclair
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024