EPICS Controls Argonne National Laboratory

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: Re: EDM xyGraphClass yLabel displaying backwards
From: John Sinclair <[email protected]>
To: Carl Schumann <[email protected]>, Tech-talk <[email protected]>
Date: Wed, 15 Oct 2008 09:28:32 -0400
Carl,

At some time in the past, an individual made some nice changes to the XY graph and added the feature you describe. The problem is
that this makes things display properly for non-scalable fonts (which don't get rotated). So previously, the scalable fonts displayed
properly and the non-scalable ones did not. Now, the reverse is true. I guess I can change it back and add a check-box to indicate the
desired direction.


John Sinclair

so,

Carl Schumann wrote:
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







References:
EDM xyGraphClass yLabel displaying backwards Carl Schumann

Navigate by Date:
Prev: Re: epics dbpf problem Thomas Birke
Next: RE: a question about mbbiDirect and fanout Owens, PH (Peter)
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: EDM xyGraphClass yLabel displaying backwards Carl Schumann
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 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·