[root] / trunk / graf2d / graf / src / TGaxis.cxx Repository:
ViewVC logotype

Log of /trunk/graf2d/graf/src/TGaxis.cxx

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 48992 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 28 15:26:26 2013 UTC (21 months, 3 weeks ago) by rdm
File length: 79823 byte(s)
Diff to previous 45021
From Lifeng Sun:
The attached patchset fixes a bunch of typo in the source:
0001-succes-success.patch
0002-preceed-preced.patch
0003-informations-information.patch
0004-childs-children.patch
0005-avaliable-available.patch
0006-writeable-writable.patch
0007-comand-command.patch
0008-unkown-unknown.patch
0009-wierd-weird.patch
0010-wheter-whether.patch
0011-unecessary-unnecessary.patch
0012-splitted-split.patch
0013-registerd-registered.patch
0014-recieve-receive.patch
0015-processsing-processing.patch
0016-ouput-output.patch
0017-mutiple-multiple.patch
0018-lenght-length.patch
0019-interupted-interrupted.patch
0020-independant-independent.patch
0021-inconsistant-inconsistent.patch
0022-expresion-expression.patch
0023-explicitely-explicitly.patch
0024-enviroment-environment.patch
0025-deafult-default.patch
0026-continous-continuous.patch
0027-completly-completely.patch
0028-commited-committed.patch
0029-choosen-chosen.patch
0030-backgroud-background.patch
0031-auxilliary-auxiliary.patch
0032-authentification-authentication.patch
0033-appropiate-appropriate.patch
0034-an-other-another.patch
0035-environement-environment.patch
0036-targetting-targeting.patch
0037-suppported-supported.patch
0038-paramater-parameter.patch

Revision 45021 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 12 09:55:26 2012 UTC (2 years, 6 months ago) by couet
File length: 79824 byte(s)
Diff to previous 44507
Patch proposed by Philippe Gras and Julian Sitarek here:
https://savannah.cern.ch/bugs/?94401#comment21

The time axis behavior should now be correct along time zone and
summer time saving time.

New example test have been introduced to test the time axis (timeonaxis3.C)

Revision 44507 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 4 12:30:41 2012 UTC (2 years, 7 months ago) by axel
File length: 80426 byte(s)
Diff to previous 44090
Remove
  using namespace std;
from Riostream.h, which has huge consequences for all of ROOT.
Riostream.h is now a simple wrapper for fstream, iostream, iomanip for backward compatibility; Riosfwd.h simply wraps iosfwd.

Because of templates and their inline functions, Riostream.h needed to be included in headers, too (e.g. TParameter.h), which violated the assumption that Riostream.h is not exposing its using namespace std to headers.
ROOT now requires R__ANSISTREAM, R__SSTREAM, which does not change the set of supported compilers.

Without "using namespace std", several identifiers are now prefixed by std::; e.g. roofit/* source files now have a using namespace std to keep their coding style.
TFile::MakeProject() now generates "using namespace std" to convert the CINT-style class names into C++ ones.

Revision 44090 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 3 14:14:47 2012 UTC (2 years, 8 months ago) by couet
File length: 80316 byte(s)
Diff to previous 40352
Fix https://savannah.cern.ch/bugs/?93931.
A time axis defined with the GMT option, saved into a root file in a given time zone, was different when displayed in an other time zone. The time zone offset in which the axis was created is now saved with the time axis offset allowing to make the right adjustments when the axis is displayed in an other time zone.

Revision 40352 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 25 14:19:40 2011 UTC (3 years, 6 months ago) by couet
File length: 79755 byte(s)
Diff to previous 40334
- From Vincent
linegrid should be deleted only when the optionGrid is on.

Revision 40334 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 22 15:52:42 2011 UTC (3 years, 6 months ago) by couet
File length: 79739 byte(s)
Diff to previous 37846
From Vincent Reverdy:
- PaintAxis now call PaintLineNDC directly instead of creating a TLine to call it. There is no need for it as TGaxis is a TLine.

Revision 37846 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 24 13:21:59 2011 UTC (4 years ago) by couet
File length: 79930 byte(s)
Diff to previous 37679
- doc update

Revision 37679 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 21 16:30:45 2010 UTC (4 years, 1 month ago) by couet
File length: 80009 byte(s)
Diff to previous 36309
- The following macro produced two different labelling. "3" was
  missing on the axis "b".
   TGaxis *a = new TGaxis(0.2,0.5,0.8,0.5,0.2,3.5,510,"G");
   a->SetMoreLogLabels(1); a->Draw();
   TGaxis *b = new TGaxis(0.8,0.7,0.2,0.7,0.2,3.5,510,"G");
   b->SetMoreLogLabels(1); b->Draw();

Revision 36309 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 12 08:08:06 2010 UTC (4 years, 3 months ago) by brun
File length: 79911 byte(s)
Diff to previous 36009
use strlcat

Revision 36009 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 1 13:14:33 2010 UTC (4 years, 3 months ago) by couet
File length: 79901 byte(s)
Diff to previous 36006
- strncat ->strcat

Revision 36006 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 1 13:03:33 2010 UTC (4 years, 3 months ago) by couet
File length: 79913 byte(s)
Diff to previous 35779
- coverity #13342

Revision 35779 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 27 09:53:08 2010 UTC (4 years, 3 months ago) by couet
File length: 79837 byte(s)
Diff to previous 35573
- Fix a precision issue on Mac. With the following lines the last label
  (10^3) did not show:
  t1 = new TH1F("test","test", 100,1,1000);
  t1.Draw();
  gPad->SetLogx(1);

Revision 35573 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 22 12:12:14 2010 UTC (4 years, 4 months ago) by couet
File length: 79829 byte(s)
Diff to previous 35014
- sprintf -> snprintf (coverity)

Revision 35014 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 25 14:29:42 2010 UTC (4 years, 5 months ago) by couet
File length: 79764 byte(s)
Diff to previous 34483
- In SetTimeOffset the 2nd parameter in the call to strftime
  should be 20 and not 256 (coverity).

Revision 34483 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 19 15:20:24 2010 UTC (4 years, 6 months ago) by couet
File length: 79765 byte(s)
Diff to previous 34277
- Alpha numeric labels are not scaled in case of text precision 3 
  (size in pixels).

Revision 34277 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 1 10:37:08 2010 UTC (4 years, 6 months ago) by rdm
File length: 79739 byte(s)
Diff to previous 32197
fix format warnings.

Revision 32197 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 3 16:01:36 2010 UTC (4 years, 11 months ago) by couet
File length: 79731 byte(s)
Diff to previous 31711
- In case of horizontal axis with the font size in pixel (font precision = 3)
  the labels were not visible.
  (http://root.cern.ch/phpBB2/viewtopic.php?p=42022#42022)

Revision 31711 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 9 09:43:44 2009 UTC (5 years, 1 month ago) by couet
File length: 79496 byte(s)
Diff to previous 30699
- initialize members and local variables (coverity)

Revision 30699 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 13 12:15:01 2009 UTC (5 years, 3 months ago) by couet
File length: 79386 byte(s)
Diff to previous 28873
- A TGaxis with custom scale defined by a function did not display ticks all 
  the way along the axis, only between the lowest and the highest major tick.
  This behaviour could be seen with:
  {
     TF1* f = new TF1("f", "exp(x)", 0.467, 2.1345);
     TGaxis* a = new TGaxis(0.1,0.4,0.9,0.4, "f", 50510, "-");
     a->Draw();
     TGaxis* b = new TGaxis(0.1,0.7,0.9,0.7, 0.4356, 1.56789, 50510, "-");
     b->Draw();
  }

Revision 28873 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 10 09:50:35 2009 UTC (5 years, 7 months ago) by couet
File length: 79442 byte(s)
Diff to previous 28744
- gStyle.SetStripDecimals(kFALSE); did not work in cases like the following one:
  {
     gStyle.SetStripDecimals(kFALSE);
     gStyle.SetPadLeftMargin(.15);
     TGraph graph_freq;
     graph_freq.SetPoint(0, 933., 40078879.);
     graph_freq.SetPoint(1, 934., 40078966.);
     graph_freq.Draw("A*");
  }

Revision 28744 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 28 12:22:43 2009 UTC (5 years, 7 months ago) by couet
File length: 79170 byte(s)
Diff to previous 28450
- On log-scale TGAxis, with labels having lower values than 1 and ticks marks
  set to the positive side, alignement issues seem to come up. 
  The following example shows four TGAxis drawn respectively with the 
  following options: RG-, RG+, LG-, LG+. For the RG+ and LG+ options, 
  the 10E-1 and 10E-2 labels were ill-aligned, showing a shift to the right 
  compared to the 1E2, 1E1 and 1 labels. 
  {
     c1 = new TCanvas("c1","Examples of Log TGaxis",10,10,700,500);
     c1->Range(-10,-1,10,1);
     TGaxis *axis1 = new TGaxis(-7,-0.8,-7,0.8,0.01,100,50510,"RG-");
     axis1->SetTitle("RG-"); axis1->Draw();
     TGaxis *axis2 = new TGaxis(-2,-0.8,-2,0.8,0.01,100,50510,"RG+");
     axis2->SetLabelOffset(-0.04); axis2->SetTitleOffset(-1.5);
     axis2->SetTitle("RG+"); axis2->Draw();
     TGaxis *axis3 = new TGaxis(2,-0.8,2,0.8,0.01,100,50510,"LG-");
     axis3->SetLabelOffset(-0.04);
     axis3->SetTitle("LG-"); axis3->Draw();
     TGaxis *axis4 = new TGaxis(7,-0.8,7,0.8,0.01,100,50510,"LG+");
     axis4->SetTitleOffset(-1);
     axis4->SetTitle("LG+"); axis4->Draw();
  }
  This bug was reported here: https://savannah.cern.ch/bugs/?50937

Revision 28450 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 5 11:56:10 2009 UTC (5 years, 8 months ago) by couet
File length: 79330 byte(s)
Diff to previous 27975
- PaintAxis: The option "U", for unlabeled axis, was not implemented in
  case of alphanumeric axis' labels.

Revision 27975 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 27 16:26:08 2009 UTC (5 years, 9 months ago) by couet
File length: 79314 byte(s)
Diff to previous 25511
- Help cleanup.

Revision 25511 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 23 13:24:53 2008 UTC (6 years, 4 months ago) by couet
File length: 80058 byte(s)
Diff to previous 23460
- When drawn with the option X+ or Y+ the histogram axis were wrong in
  case of alphanumeric labels. The tick marks were in the right place
  but the labels were not.

Revision 23460 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 23 13:19:07 2008 UTC (6 years, 9 months ago) by couet
File length: 79730 byte(s)
Diff to previous 23140
- Fix shadowed variables

Revision 23140 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 11 11:01:39 2008 UTC (6 years, 9 months ago) by rdm
File length: 79724 byte(s)
Diff to previous 20882
move the following directories to "graf2d":

asimage, freetype, gpad, graf, postscript, qt, win32gdk, x11, x11ttf

move the following directories to "graf3d":

eve, ftgl, g3d, gl, x3d

Revision 20882 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 11:31:26 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/graf/src/TGaxis.cxx
File length: 79724 byte(s)
Diff to previous 20621
Set property svn:eol-style LF on all source and Makefiles. This should avoid
problems with Win32 line endings ending up in the repository. All MS tools
support LF eols fine.

Revision 20621 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 2 14:56:15 2007 UTC (7 years, 2 months ago) by couet
Original Path: trunk/graf/src/TGaxis.cxx
File length: 79724 byte(s)
Diff to previous 19826
- Some attributes were not saved by SavePrimitive():
  TitleSize, TitleColor, TitleFont

Revision 19826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:56:11 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/graf/src/TGaxis.cxx
File length: 79534 byte(s)
Diff to previous 19825
imported svn:keywords Id property

Revision 19825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:49:10 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/graf/src/TGaxis.cxx
File length: 79585 byte(s)
Diff to previous 19746
remove :$ from tag line

Revision 19746 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 31 09:37:51 2007 UTC (7 years, 4 months ago) by couet
Original Path: trunk/graf/src/TGaxis.cxx
File length: 79595 byte(s)
Diff to previous 19304
- PaintAxis: In some cases the axis label "-0" appeared. That's now fixed.
  This problem was visible with the following commands:

  TH2D *s = new TH2D("s","",10,0,100,10,-9e-4,5e-4);
  s->Draw();

Revision 19304 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 10 09:08:30 2007 UTC (7 years, 6 months ago) by couet
Original Path: trunk/graf/src/TGaxis.cxx
File length: 79319 byte(s)
Diff to previous 19118
- Remove a stupid construct in PaintAxis. In the "fFunction" case there was
  an if statement like:

           if (optionNoopt && !optionInt) {
               dxtick=(binHigh-binLow)/Double_t(nticks-1);
           } else {
               dxtick=(binHigh-binLow)/Double_t(nticks-1);
           }

  Now replaced by the simple line:

           dxtick=(binHigh-binLow)/Double_t(nticks-1);

  This code was like that since at least May 2000.

Revision 19118 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 22 07:17:48 2007 UTC (7 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 79461 byte(s)
Diff to previous 18050
Fix possible uninitialized variables in TGaxis::PaintAxis and THLimitsFinder

Revision 18050 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 21 17:35:25 2007 UTC (7 years, 11 months ago) by couet
Original Path: trunk/graf/src/TGaxis.cxx
File length: 79458 byte(s)
Diff to previous 17878
- The title offset could not be smaller than 0.1. There is no reasons
  why it should not be.

Revision 17878 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 12 09:17:01 2007 UTC (7 years, 11 months ago) by couet
Original Path: trunk/graf/src/TGaxis.cxx
File length: 79420 byte(s)
Diff to previous 17727
- In PaintAxis: in case (range>31536000) the daylight saving option is now
  ON, as it is in the normal case. This case has been forgotten in Revision
  1.95.

Revision 17727 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 6 14:35:45 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 79412 byte(s)
Diff to previous 17088
In the Streamer functions replace the lines like
         TPad::Class()->ReadBuffer(b, this, v, R__s, R__c);
         TPad::Class()->WriteBuffer(b,this);
by
         b.ReadClassBuffer(TPad::Class(), this, v, R__s, R__c);
         b.WriteClassBuffer(TPad::Class(),this);

Revision 17088 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 7 10:08:35 2006 UTC (8 years, 1 month ago) by couet
Original Path: trunk/graf/src/TGaxis.cxx
File length: 79404 byte(s)
Diff to previous 16676
- To remove axis' labels ROOT's users set the LabelOffset to a large value
  (very often 99). This ended up with some text drawn at very "far away"
  positions. Some low level text painting functions (like the TASImage one)
  were "not happy" with such big values and produced a Seg-Fault. This
  problem is visible since the text clipping is done directly in TPDF and
  TPostScript and not any more in TPad (TPad text clipping was wrong).
  Now, if the label offset is set that way (ie "big"), the option "UnLab"
  is automatically turned ON.

Revision 16676 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 2 11:03:37 2006 UTC (8 years, 2 months ago) by couet
Original Path: trunk/graf/src/TGaxis.cxx
File length: 79612 byte(s)
Diff to previous 16562
- From Bertrand and Olivier:
  The flag tm_isdst in the "tm" structure is now set to 1 to put the
  daylight saving on. We have also checked that this fix is compatible
  with the fixes done in Revision 1.86 and 1.93. Also, a protection has
  been added against negative timeoffset after a call to mktime (it
  occurs sometimes on windows).

Revision 16562 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 19 13:35:52 2006 UTC (8 years, 3 months ago) by couet
Original Path: trunk/graf/src/TGaxis.cxx
File length: 81241 byte(s)
Diff to previous 16360
With:

gStyle->SetLabelFont(131,"x");
gStyle->SetLabelFont(131,"y");

the axis labels in log scale showed up without the latex markup rendered
properly. 1000 appeared as the ascii "10^{3}", not the rendered 10 with a
superscript 3.

The following little script reproduces the problem:

{
   gStyle->SetLabelFont(131,"x");
   gStyle->SetLabelFont(131,"y");

   TH1F h("h", "h", 100, 0, 1000000);
   h.SetBinContent(10, 1000000);
   h.SetBinContent(50, 100);
   h.Draw();
   c1->SetLogy();
   c1->SetLogx();
}

This problem was reported in: https://savannah.cern.ch/bugs/index.php?20839

Revision 16360 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 28 09:35:12 2006 UTC (8 years, 3 months ago) by couet
Original Path: trunk/graf/src/TGaxis.cxx
File length: 80947 byte(s)
Diff to previous 15672
- From Bertrand and Olivier:
  PaintAxis takes into account the timezone offset for the current location.
  This fixes the bug: http://savannah.cern.ch/bugs/?20056.
  All standard time axis the tests are running correctly.

Revision 15672 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 3 16:10:46 2006 UTC (8 years, 6 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 80719 byte(s)
Diff to previous 15254
from Axel:
Change the signature of SavePrimitive from

  void SavePrimitive(ofstream &out, Option_t *option);
to
  void SavePrimitive(ostream &out, Option_t *option = "");

With this change one can do, eg
   myhist.SavePrimitive(std::cout);

WARNING: do rm -f tree/src/*.o

Revision 15254 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 31 09:13:43 2006 UTC (8 years, 7 months ago) by couet
Original Path: trunk/graf/src/TGaxis.cxx
File length: 80711 byte(s)
Diff to previous 15226
- The protection added in the previous revision against invalid number of
  divisions was a bit too strong: ndiv<=0. ndiv<0 is enough, ndiv=0 doesn't
  produce an endless loop.

Revision 15226 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 30 09:13:24 2006 UTC (8 years, 7 months ago) by couet
Original Path: trunk/graf/src/TGaxis.cxx
File length: 80711 byte(s)
Diff to previous 15171
- Protection added in PaintAxis to prevent invalid number of divisions.
  A negative number of divisions produced an endless loop.

Revision 15171 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 24 16:44:33 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 80612 byte(s)
Diff to previous 15134
Fix coding conventions violations

Revision 15134 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 23 04:47:42 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 80517 byte(s)
Diff to previous 14935
From Federico Carminati:

"I have implemented all copy and equal operators needed to silence all
warnings in AliRoot, as requested. I have implemented shallow copies as
would do the default operators synthetized by the compiler.
Most operators are protected. If users complain, you just have to move
them into the public area, but class derivation is of course supported.
It has been a terrible job, I have modified 278 files, but the changes
are backward compabile, and this goes a long way to permitting user to
use the effc++ flag with root headers."

Revision 14935 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 6 14:06:34 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 79183 byte(s)
Diff to previous 14934
I forgot to update one place referencing tm_isdst in the previous fix.

Revision 14934 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 6 13:46:41 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 79188 byte(s)
Diff to previous 14336
From Bertrand:
Fix a problem in TGaxis due to a special behaviour of "mktime" on Windows

If successful, *mktime* sets the values of *tm_wday* and *tm_yday* as
appropriate and sets the other components to represent the specified
calendar time, but with their values forced to the normal ranges. The final
value of *tm_mday* is not set until *tm_mon* and *tm_year* are determined.
When specifying a *tm* structure time, set the *tm_isdst* field to:

   * Zero (0) to indicate that standard time is in effect.
   * A value greater than 0 to indicate that daylight savings time is
     in effect.
   * A value less than zero to have the C run-time library code compute
     whether standard time or daylight savings time is in effect.

(The C run-time library assumes the United States' rules for implementing
the calculation of Daylight Saving Time.) *tm_isdst* is a required field. If
not set, its value is undefined and the return value from *mktime* is
unpredictable. If /timeptr/ points to a *tm* structure returned by a
previous call to *asctime*, *gmtime*, or *localtime*, the *tm_isdst* field
contains the correct value.

Revision 14336 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 20 21:43:44 2006 UTC (8 years, 10 months ago) by pcanal
Original Path: trunk/graf/src/TGaxis.cxx
File length: 77585 byte(s)
Diff to previous 13315
Reduce direct dependencies on TClass.h, TROOT.h and TStreamerInfo.h.
Warning:  This means that some file that relied on the indirect
inclusion of these header file might now fail to compile with
an error message mention that gROOT is no known or that TClass,
TROOT or TStreamerInfo is incompletely defined.  Simply add the
proper include directive.

Revision 13315 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 22 11:09:20 2005 UTC (9 years, 2 months ago) by couet
Original Path: trunk/graf/src/TGaxis.cxx
File length: 77565 byte(s)
Diff to previous 13244
- In case of log scale on a vertical axis, the x-position of the extra labels
  (when SetMoreLogLabels is true) was not computed the same way as the
  x-position of the decades labels. Therefore they where not aligned.

Revision 13244 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 15 15:13:59 2005 UTC (9 years, 2 months ago) by couet
Original Path: trunk/graf/src/TGaxis.cxx
File length: 77032 byte(s)
Diff to previous 13113
- mods to make the rules checker happy

Revision 13113 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 3 09:02:13 2005 UTC (9 years, 2 months ago) by couet
Original Path: trunk/graf/src/TGaxis.cxx
File length: 77036 byte(s)
Diff to previous 12643
- Alphanumeric labels were painted with the text size "charheight" instead
  of "textaxis->GetTextSize()" like for other kind of labels. The problem
  was showing when the text precision was equal to 3.

Revision 12643 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 5 07:25:22 2005 UTC (9 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 76997 byte(s)
Diff to previous 12575
Fix coding conventions violations.

Revision 12575 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 30 16:03:57 2005 UTC (9 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 76980 byte(s)
Diff to previous 12010
Changes to make the rulechecker happy.
This class was not trivial !

Revision 12010 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 10 15:53:34 2005 UTC (9 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 76980 byte(s)
Diff to previous 10731
Fix in TGaxis::PaintAxis.
Always paint teh axis title before painting the tick marks.
This fixes a problem when setting the number of divisions to 0.
In this case the axis title was not drawn.

Revision 10731 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 9 08:30:25 2004 UTC (10 years, 1 month ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 76980 byte(s)
Diff to previous 10019
The TGaxis line width was ignoring the line width (unless set via TStyle).

Revision 10019 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 13 16:39:12 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 76988 byte(s)
Diff to previous 9823
From Ilka:
code for saving any user
specified color via color widgets in a macro. Any color different from
the standard root colors is saved via hex rgb string. Up to now colors
were save via the index and if this index > 228 the running macro causes
SegV.

A new static method SaveColor() is added in TColor class.

Revision 9823 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 23 15:09:18 2004 UTC (10 years, 5 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 76675 byte(s)
Diff to previous 9822
Fix a misplaced statement in previous correction.

Revision 9822 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 23 15:01:23 2004 UTC (10 years, 5 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 76672 byte(s)
Diff to previous 9770
In TGaxis::Paint do not set/reset the option "G" when toggling lin/log scales

Revision 9770 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 17 13:34:35 2004 UTC (10 years, 5 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 76662 byte(s)
Diff to previous 9575
In TGaxis::PaintAxis modify the algorithm painting the grid
in case of a log scale.
The grid lines are only drawn for the primary tick marks if there are
no secondary or tertiary divisions.

Revision 9575 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 23 09:36:35 2004 UTC (10 years, 6 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 76509 byte(s)
Diff to previous 9220
From Olivier:
 In TGaxis::Paint the member tm_isdst of the tm C struct is set to 0.
Before it was -1. -1 meant "daylight saving time is not available". 0
means "daylight saving time is not in effect". See the man pages of mktime
for more details. Before this fix the following macro produced an X axis
shifted by one hour for the months between April and October (the month
is now fixed to July).

{
   TCanvas* c = new TCanvas("c","Data",600,500);
   TDatime da(2004,07,09,00,00,00);
   Int_t t0 = da.Convert();
   Int_t dt = 5.*60.*60.;
   TH2F* hiscom = new TH2F("hiscom","",1000,0.,dt,10,0.,1.);
   hiscom->GetXaxis()->SetTimeOffset(t0);
   hiscom->GetXaxis()->SetTimeDisplay(1);
   hiscom->GetXaxis()->SetTimeFormat("%d-%H:%Mh");
   hiscom->GetXaxis()->SetLabelSize(0.021);
   hiscom->GetXaxis()->SetLabelOffset(0.02);
   hiscom->GetXaxis()->SetNdivisions(210);
   hiscom->Draw("");
}

Revision 9220 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 16 08:51:25 2004 UTC (10 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 76448 byte(s)
Diff to previous 9217
Fix a conversion problem in TGaxis::ImportAttributes

Revision 9217 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 16 08:23:27 2004 UTC (10 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 76423 byte(s)
Diff to previous 9213
In TAxis class
==============
Add a new data member
   UShort_t     fBits2;          //second bit status word
Add new enum kDecimals
Add new functions:

         Bool_t  GetDecimals() const;
  virtual void   SetDecimals(Bool_t dot=kTRUE);  // *TOGGLE*
// Set the Decimals flag
// By default, blank characters are stripped, and then the
// label is correctly aligned. The dot, if last character of the string,
// is also stripped, unless this option is specified.
// One can disable the option by calling axis.SetDecimals(kTRUE).
// The flag (in fBits2) is passed to the drawing function TGaxis::PaintAxis

in TGaxis class
===============
Add new function:
   virtual void  SetDecimals(Bool_t dot=kTRUE);
     (same as TAxis::SetDecimals)

Modify TGaxis::PaintAxis to take into account the SetDecimals:
// Format of labels.
// -----------------
//
//   Blank characters are stripped, and then the
//   label is correctly aligned. the dot, if last
//   character of the string, is also stripped,
//   unless the option "." (a dot, or period) is specified.
//   if SetDecimals(kTRUE) has been called (bit TAxis::kDecimals set).
//   all labels have the same number of decimals after the "."
//   The same is true if gStyle->SetStripDecimals(kFALSE) has been called.

Revision 9213 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 15 15:53:51 2004 UTC (10 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 75472 byte(s)
Diff to previous 9145
Document option "." in TGaxis::PaintAxis

Revision 9145 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 8 20:41:28 2004 UTC (10 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 75412 byte(s)
Diff to previous 9086
In TGaxis::Paint add support for automatic toggle between lin/log scales.

Revision 9086 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 2 09:39:40 2004 UTC (10 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 74839 byte(s)
Diff to previous 8690
In TGaxis::PaintAxis activate the maxDigits algorithm also in case
of 2-d or 3-d histograms.

Revision 8690 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 26 08:25:35 2004 UTC (10 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 74863 byte(s)
Diff to previous 8689
The algorithm using fgMaxDigits is only applied to the y axis for 1-d histogram
and the z axis for 2-d histograms

Revision 8689 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 26 07:30:19 2004 UTC (10 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 74707 byte(s)
Diff to previous 7885
Add two improvements to TGaxis:
  -When the axis multiplication factor (10^N) is drawn, N is always a multiple of 3
  -When the option "+-" is specified, the labels are correctly aligned

Revision 7885 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 12 12:58:02 2004 UTC (11 years ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 74360 byte(s)
Diff to previous 7884
Minor change to Olivier improvement. Use factor 1.3 instead of 1.5

Revision 7884 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 12 12:44:42 2004 UTC (11 years ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 74360 byte(s)
Diff to previous 7744
From Olivier:
Leave more space between labels when the option MoreLogLabels is on

Revision 7744 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 12 17:57:05 2003 UTC (11 years, 1 month ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 74274 byte(s)
Diff to previous 7668
Some axis optimisations (time axis in particular) by Damir Buskulic

Revision 7668 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 27 15:15:48 2003 UTC (11 years, 1 month ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 74090 byte(s)
Diff to previous 7654
From Damir and Olivier:

Correct a few remaining problems for time axis. Now, the time stored in
the format is always expressed in UTC. The local time is calculated
only at display time if the "gmt" option of SetTimeOffset is not used.
This allows to send a plot to someone in another time zone without
discrepancies on the time displayed.
If the plot uses "gmt", it will always show the same, whatever time
zone. If not, the time displayed will be the one local to the
displaying machine.

Revision 7654 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 25 17:12:30 2003 UTC (11 years, 2 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 73495 byte(s)
Diff to previous 7645
From Olivier:

Implement suggestion from Damir Buskulic:

- Take into account the decimal part of the time offset.
- New parameter "option" in SetTimeOffset. Default value is "local"
  meaning the time offset should be consider as a local time. It can
  be set to "gmt" meaning the time offset should be consider as GMT time.

Revision 7645 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 25 11:34:58 2003 UTC (11 years, 2 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 72343 byte(s)
Diff to previous 7334
From Damir Buskulic.

Fix a problem in the axis time management when the time offset
has a crazy value.

Revision 7334 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 23 14:56:50 2003 UTC (11 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 71742 byte(s)
Diff to previous 7301
From Olivier:
  Save the new axis attributes (MoreLogLabels and noExponent) when axis
are saved in a canvas.C file.

Revision 7301 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 19 14:02:31 2003 UTC (11 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 71556 byte(s)
Diff to previous 7286
From Olivier:
Improvements in the log axis drawing:
 - allows exponent notation when extra log labels are drawn
 - extra labels are drawn only if they do not overlap
 - draw exponent labels with TLatex
 - better positioning of the labels
 - remove useless code and unused variables

Revision 7286 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 16 11:17:06 2003 UTC (11 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 71514 byte(s)
Diff to previous 7285
One more fix in TGaxis::PaintAxis such that the option MoreLogLabels can also
work with a TGaxis object not built from a TAxis.

Revision 7285 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 16 11:03:56 2003 UTC (11 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 71481 byte(s)
Diff to previous 7280
n TGaxis::PaintAxis, the fAxis pointer exists only when the TGaxis object
is imported from a TAxis. Protect the setting of MoreLogLabels in case fAxis is null.

Revision 7280 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 15 09:46:06 2003 UTC (11 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 71436 byte(s)
Diff to previous 7266
Fix a bug in TGaxis::PaintAxis

Revision 7266 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 12 09:18:01 2003 UTC (11 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 71443 byte(s)
Diff to previous 7233
Add new function TAxis::SetMoreLogLabels to draw more labels in case
of an axis in log scale with a small number of decades.
The options is kept in TAxis via the new bit kMoreLogLabels.
The corresponding changes in TGaxis to automatically import the TAxis option.
The bits in TGaxis duplicating the bits in TAxis have been removed.
The new function SetMoreLogLabels is visible in the TAxis context menu.

Revision 7233 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 8 15:26:53 2003 UTC (11 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 71520 byte(s)
Diff to previous 7200
From Olivier:

In TGaxis and TAxis the time offset in now managed without using TDatime.
Using TDatime was not a good idea because its starting date is 1995. The
new mechanisms uses now 1970 (like UNIX) as starting date. Note that the
functionality and examples given in the HowTo page and documentation
remains exactly the same.

Revision 7200 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 2 17:09:53 2003 UTC (11 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 70992 byte(s)
Diff to previous 6674
From Olivier:

It is now possible to set a time offset equal to zero for time axis. When
the time offset is zero, the axis limits are considered as absolute times.
The following example shows how it works:

{
   TDatime T1(1998,01,05,00,00,00); // First date
   int X1 = T1.Convert();

   TDatime T2(2002,12,31,00,00,00); // Second date
   int X2 = T2.Convert();

   TH1D *iT = new TH1D("iT","time axis",1000,X1,X2);
   iT->GetXaxis()->SetTimeDisplay(1);
   iT->GetXaxis()->SetTimeFormat("%d\.%m\.%y");
   iT->GetXaxis()->SetTimeOffset(0);
   iT->GetXaxis()->SetLabelSize( 0.03 );
   iT->Draw();
}

Revision 6674 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 2 17:11:42 2003 UTC (11 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 70995 byte(s)
Diff to previous 6628
Add comments in TGaxis::PaintAxis to document the time axis possibilities

Revision 6628 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 15 13:31:14 2003 UTC (11 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 70703 byte(s)
Diff to previous 6431
From Ilka:
In TGaxis::SavePrimitive, save also the axis attributes.

Revision 6431 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Apr 12 21:48:10 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 70197 byte(s)
Diff to previous 6430
Remove a limitation to 36 characters when calling  strftime  (Damir)

Revision 6430 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Apr 12 17:14:32 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 70061 byte(s)
Diff to previous 6414
Implement extension of TLatex by Damir Buskulic.
A TLatex string may be split in two lines (like a fraction without the line)
with the new command #splitline{top}{bottom}.
TAxis and TGaxis have been modified to take advantage of the new feature.
For example a new option in the time axis can show the date/time over two lines
with eg: #splitline{21 April 2003}{14:23:56}

Revision 6414 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 10 09:05:29 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 69575 byte(s)
Diff to previous 6413
Fix a compiler warning with a variable potentially not initialized

Revision 6413 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 10 09:00:21 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 69572 byte(s)
Diff to previous 6404
From Olivier;
 New function SetTimeOffset in TAxis and TGaxis to change the time offset
for time Axis. This implied also changes in SetTimeFormat

Revision 6404 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 8 13:05:35 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 69066 byte(s)
Diff to previous 6402
Fix compiler warning (Olivier)

Revision 6402 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 8 08:16:41 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 69058 byte(s)
Diff to previous 6366
The time offset is now saved in fTimeFormat in TAxis and TGaxis (by Olivier)

Revision 6366 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 3 15:31:59 2003 UTC (11 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 68322 byte(s)
Diff to previous 6155
Fix by Olivier for a problem reported by Daniel Cussol
when drawing an axis with option LG+

Revision 6155 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 20 22:36:10 2003 UTC (11 years, 11 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 68228 byte(s)
Diff to previous 5543
Add a new optional argument drawGridOnly to TGaxis::PaintAxis.
By default, this argument is false. If set to true, the function PaintAxis
paints only the grid (if gridx or/and y have been activated in the pad)

Revision 5543 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 5 11:37:36 2002 UTC (12 years, 2 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 68044 byte(s)
Diff to previous 5260
Add a new option in TAxis and TGaxis to center the bin labels
on the center of the bin instead of the tick marks.
This option makes sense only when the number of bins is equal
to the number of tick marks.
The new function TAxis::CenterLabels sets the bit kCenterLabels.
CenterLabels is visible in the TAxis context menu.

Revision 5260 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 11 08:51:25 2002 UTC (12 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 67527 byte(s)
Diff to previous 4728
Fix a problem when option "-" is specified.
Simplify algorithm computing the number of primary,secondary and tertiary divisions.

Revision 4728 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 17 16:51:33 2002 UTC (12 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 67542 byte(s)
Diff to previous 4725
Remove unused variable textsize in TGaxis::PaintAxis

Revision 4725 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 17 07:59:34 2002 UTC (12 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 67618 byte(s)
Diff to previous 4004
In TGaxis::PaintAxis disable the LogInteger option.
A few cases have been reported (eg an x axis between 4 and 100) and log x scale
does not work at all. This part of code should be rewritten.

Revision 4004 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 15 23:22:02 2002 UTC (12 years, 11 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 67469 byte(s)
Diff to previous 3998
In TGaxis::PaintAxis optimize position of labels for several configurations.

Revision 3998 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 15 11:47:49 2002 UTC (12 years, 11 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 67238 byte(s)
Diff to previous 3875
Fix a precision problem when drawing axis with a very small relative scale.

Revision 3875 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 5 16:45:57 2002 UTC (12 years, 11 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 67254 byte(s)
Diff to previous 3867
Fix a side-effect of the new ticks/labels options on the position of the axis title.

Revision 3867 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 4 23:31:02 2002 UTC (12 years, 11 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 67250 byte(s)
Diff to previous 3782
Several optimisations in TGaxis::PaintAxis.

Add support for the new TAxis options kTickPlus and kTickMinus

Revision 3782 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jan 26 10:06:12 2002 UTC (13 years ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 66692 byte(s)
Diff to previous 3748
Remove static variables

Revision 3748 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 24 11:39:31 2002 UTC (13 years ago) by rdm
Original Path: trunk/graf/src/TGaxis.cxx
File length: 66720 byte(s)
Diff to previous 3742
rename IOSFwd.h and IOStream.h to Riosfwd.h and Riostream.h. The change
is necessary because on Windows which is case insensitive IOStream.h
hides the real iostream.h.

Revision 3742 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 23 17:52:52 2002 UTC (13 years ago) by rdm
Original Path: trunk/graf/src/TGaxis.cxx
File length: 66720 byte(s)
Diff to previous 3668
use IOSFwd.h in headers instead of <iosfwd> or many other ifdef'ed variant
and IOStream.h in the source instead of <iostream[.h]>, <fstream[.h]> and
<iomanip[.h]>.

Revision 3668 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 15 10:24:17 2002 UTC (13 years ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 66747 byte(s)
Diff to previous 3600
Remove the static function Optimize. Use THLimitsFinder instead.

Revision 3600 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 7 18:07:13 2002 UTC (13 years ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 72800 byte(s)
Diff to previous 3582
Modify TGaxis::PaintAxis to take into account horizontal pads.

Revision 3582 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 4 13:07:15 2002 UTC (13 years ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 72539 byte(s)
Diff to previous 3549
In PaintAxis, use localtime instead of gmtime.

Revision 3549 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 2 21:42:48 2002 UTC (13 years ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 72536 byte(s)
Diff to previous 3529
Add new member TAxis* fAxis.
Increment class version.

Add support for alphanumeric labels in TGaxis::PaintAxis.
This new implementation supports the new facilities introduced
in TAxis, TH1, etc. For more information see the news in TH1.

Revision 3529 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 23 09:09:33 2001 UTC (13 years, 1 month ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 70853 byte(s)
Diff to previous 3488
Add new function TGaxis::ImportAxisAttributes(TAxis *axis).

Revision 3488 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 17 17:06:52 2001 UTC (13 years, 1 month ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 70031 byte(s)
Diff to previous 3384
Modify TGaxis::PaintAxis to introduce the new option in TStyle::SetStripDecimals.

Revision 3384 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 4 14:40:21 2001 UTC (13 years, 1 month ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 69674 byte(s)
Diff to previous 3144
delete #include <float.h>. Now included in Tmath.h

Revision 3144 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 31 11:28:38 2001 UTC (13 years, 2 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 69629 byte(s)
Diff to previous 3138
Add a new member function TGaxis::SetNoExponent to disable the notation
with 10^N when drawing the axis. This option is automatically selected
when drawing TAxis objects having this property.
Note that this option is implicitly selected if the number of digits
to draw a label is less than the fgMaxDigits global member.

Revision 3138 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 30 15:56:18 2001 UTC (13 years, 2 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 68801 byte(s)
Diff to previous 3059
Eliminate the blank characters in the default TGaxis title.

Revision 3059 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 18 07:56:27 2001 UTC (13 years, 3 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 68807 byte(s)
Diff to previous 2844
In PaintAxis, add more optimizations to take into account the fgMaxDigits
parameter in special cases. For example an axis with wmin = -0.0012 and wmax=0.002
was still using the notaion 10^N

Revision 2844 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 25 16:04:14 2001 UTC (13 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 68691 byte(s)
Diff to previous 2823
Support font precision 3 (size given in pixels) when drawing the exponents
in a log scale.

Revision 2823 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 20 13:24:48 2001 UTC (13 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 68598 byte(s)
Diff to previous 2759
Add a static member fgMaxDigits with the corresponding getter and setter.
fgMaxDigits is the maximum number of digits permitted for the axis
labels above which the notation with 10^N is used.
For example, to accept 6 digits number like 900000 on an axis
call TGaxis::SetMaxDigits(6). The default value is 5.

Revision 2759 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 28 15:04:28 2001 UTC (13 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 67700 byte(s)
Diff to previous 2753
One more optimisation in TGaxis::paintAxis in case a transformation function
has been specified. The axis labels are now optimized.

Revision 2753 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 27 06:43:35 2001 UTC (13 years, 5 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 67546 byte(s)
Diff to previous 2730
A few optimisations in TGaxis::PainTAxis in case a transformation function
has been specified in the constructor.
Update the example in this constructor to show a case with a log function.

Revision 2730 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 23 13:41:36 2001 UTC (13 years, 5 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 67372 byte(s)
Diff to previous 2387
In TGaxis::DrawAxis copy the title and kCenterTitle attribute to the new object.

Revision 2387 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 7 08:37:04 2001 UTC (13 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 67282 byte(s)
Diff to previous 2130
Modify the example in comments

Revision 2130 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 7 12:28:25 2001 UTC (13 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 67278 byte(s)
Diff to previous 2014
Function TGaxis::Optimize is now a static function. An additional optional
argument has also been added.

Revision 2014 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 19 17:31:01 2001 UTC (13 years, 9 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 67151 byte(s)
Diff to previous 1589
Protect TGaxis::Optimize when crazy values are specified as input arguments.
In particular, introduce a maximum number of ticks on the axis.

Revision 1589 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 12 16:59:21 2001 UTC (13 years, 11 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 67093 byte(s)
Diff to previous 1531
Fix a problem in TGaxis when painting the 10^n scale when the font size
is specified in pixels.

Revision 1531 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 6 14:40:59 2001 UTC (13 years, 11 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 67080 byte(s)
Diff to previous 1495
Add support for fonts with precision 3 (size specified in pixels)

Revision 1495 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 30 11:31:07 2001 UTC (13 years, 11 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 66973 byte(s)
Diff to previous 1297
Modify function TGaxis::paintAxis to use the new TStyle grid functions.
If the grid color is not set in TStyle, use the current axis color.

Revision 1297 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 26 14:26:48 2000 UTC (14 years, 1 month ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 66842 byte(s)
Diff to previous 955
Implement support for text size in pixels (font precision > 2)

Revision 955 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 21 20:24:37 2000 UTC (14 years, 2 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 66722 byte(s)
Diff to previous 872
Add a protection to avoid an infinite loop in TGaxis::Optimize.
New calling sequence in TGaxis::LabelsLimits
Function Streamer now in the implementation file.
Add code for the new automatic schema evolution algorithm

Revision 872 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 9 10:50:54 2000 UTC (14 years, 2 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 66927 byte(s)
Diff to previous 552
Protect TGaxis::PaintAxis for some cases when the formatted string label
exceeds 32 characters.

Revision 552 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 1 07:02:27 2000 UTC (14 years, 4 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 66894 byte(s)
Diff to previous 528
Change the maximum authorized exponent from 30 to 200 in TGaxis::Optimize.
This change allows drawing axis with the maximum precision in case of very large
or very small values.
The change was also necessary to avoid a buffer overflow in the function
drawing labels.

Revision 528 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 25 13:10:20 2000 UTC (14 years, 5 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 66818 byte(s)
Diff to previous 148
Add the following missing description of option "S" in TGaxis::PaintAxis
// Size of tick marks
// ------------------
// By default, tick marks have a length equal to 3 per cent of the
// axis length.
// When the option "S" is specified, the length of the tick marks
// is equal to fTickSize*axis_length, where fTickSize may be set
// via TGaxis::SetTickSize.

Revision 148 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 13 10:56:59 2000 UTC (14 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 66529 byte(s)
Diff to previous 47
   Members fWmin, fWmax changed from Float_t to Double_t
   TGaxis constructors have their arguments changed from Float_t to Double_tr
   The following functions have their arguments or return type
   changed from Float_t to Double_t:
        virtual void    AdjustBinSize(Double_t A1,  Double_t A2,  Int_t nold
                       ,Double_t &BinLow, Double_t &BinHigh, Int_t &nbins, Double_t &BinWidth);
        virtual void    DrawAxis(Double_t xmin,Double_t ymin,Double_t xmax,Double_t ymax,
                                 Double_t wmin,Double_t wmax,Int_t ndiv=510, Option_t *chopt="",
                                 Double_t gridlength = 0);
             Double_t   GetWmin()         {return fWmin;}
             Double_t   GetWmax()         {return fWmax;}
        virtual void    Optimize(Double_t A1,  Double_t A2,  Int_t nold
                       ,Double_t &BinLow, Double_t &BinHigh, Int_t &nbins, Double_t &BWID);
        virtual void    PaintAxis(Double_t xmin,Double_t ymin,Double_t xmax,Double_t ymax,
                                  Double_t &wmin,Double_t &wmax,Int_t &ndiv, Option_t *chopt="",
                                  Double_t gridlength = 0);
        virtual void    Rotate(Double_t X,  Double_t Y,  Double_t CFI, Double_t SFI
                              ,Double_t XT, Double_t YT, Double_t &U,   Double_t &V);
                void    SetWmin(Double_t wmin) {fWmin = wmin;}
                void    SetWmax(Double_t wmax) {fWmax = wmax;}

Revision 47 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 29 06:19:21 2000 UTC (14 years, 7 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 65507 byte(s)
Diff to previous 11
//  29 May
- Add the following note in the TPave, TPaveLabel and TPaveText constructors:
    IMPORTANT NOTE:
    Because TPave objects (and objects deriving from TPave) have their
    master coordinate system in NDC, one cannot use the TBox functions
    SetX1,SetY1,SetX2,SetY2 to change the corner coordinates. One should use
    instead SetX1NDC, SetY1NDC, SetX2NDC, SetY2NDC.

   28 May
- Modify THistPainter::PaintStat and PaintStat2 to use the TLatex character #pm
  instead of +-

//     27 May
- Add new member functions:
    Int_t TVirtualTreePlayer::GetDimension()
    Int_t TTreePlayer::GetDimension()
  GetDimension returns the number of dimensions in the TTree::Draw expression.

- Add new function in TTree;
   void TTree::UnbinnedFit(const char *funcname ,const char *varexp, const char *selection="",Option_t *option=""
                       ,Int_t nentries=1000000000, Int_t firstentry=0);
   This function (origin Stephen Bailey) performs an unbinned fit to the
   variable(s) given in varexp.

- Remove unused data member fDimension from class TTree.

- Introduce support for "Virtuality" in TLeafObject.
  New data member fVirtual added and corresponding IsVirtual/SetVirtual functions.
  By default, fVirtual is kTRUE.
  This change allows new interesting possibilities in split mode. For example
  if a member is TShape *fShape, a real object may be now of any type
  derived from TShape (eg, TTUBE, TBRIK, etc).
  With the previous version, the fShape object had to be of the declared
  type TShape only.
  When writing a TLeafObject, the class name of the object is now written in
  the branch buffer by TLeafObject::FillBasket. When TLeafObject::ReadBasket
  is called, an instance of the real class is built and its Streamer function
  called.
  This change is backward compatible. Old files can still be processed.
  It is possible to set the virtuality for the branch to kFALSE via
  TLeafObject::SetVirtual. Setting the virtuality to kFALSE makes
  writing and reading faster and the file slightly smaller. In this case,
  a TLeafObject must be of the type declared only.

- New minor changes in TGaxis (Damir Buskulic) for date/time format
  in case the start time is not an integer value.

- Modify tutorial psexam.C to set the TPaveText TextFont to 61 instead of 62.
  Font precision 1 bypass the TLatex logic.

- Mods in TLatex to remove the special treatment for characters ' and ".
  Strings like l'#acute{e}toile  are now correctly processed.

- Fix a bug in TGraph::GetFunction. (thanks Damon Spayde). The test
    if (fFunctions)  return 0;  replaced by
    if (!fFunctions) return 0;

Revision 11 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 18 16:55:39 2000 UTC (14 years, 8 months ago) by brun
Original Path: trunk/graf/src/TGaxis.cxx
File length: 65511 byte(s)
Diff to previous 3
Fix from Damir Buskulic in TGaxis in case od date/time format

Revision 3 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: trunk/graf/src/TGaxis.cxx
File length: 65231 byte(s)
Copied from: branches/rdm/graf/src/TGaxis.cxx revision 2
Diff to previous 2
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.

Revision 2 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: branches/rdm/graf/src/TGaxis.cxx
File length: 65231 byte(s)
Initial import of ROOT into CVS

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9