[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #34207] gl-render does not set tick labels for
From: |
Ben Abbott |
Subject: |
[Octave-bug-tracker] [bug #34207] gl-render does not set tick labels for log axes appropriately |
Date: |
Tue, 06 Sep 2011 00:45:23 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.220 Safari/535.1 |
Follow-up Comment #1, bug #34207 (project octave):
The tick mark/label positions aren't calculated for gnuplot either. I haven't
checked, but it appears that either gnuplot or the gnuplot backend fixes
this.
In graphics.cc the is a FIXME which mentions log ticks.
5132 // A translation from Tom Holoryd's python code at
5133 // http://kurage.nimh.nih.gov/tomh/tics.py
5134 // FIXME -- add log ticks
5135
5136 double
5137 axes::properties::calc_tick_sep (double lo, double hi)
5138 {
5139 int ticint = 5;
5140
5141 // Reference: Lewart, C. R., "Algorithms SCALE1, SCALE2, and
5142 // SCALE3 for Determination of Scales on Computer Generated
5143 // Plots", Communications of the ACM, 10 (1973), 639-640.
5144 // Also cited as ACM Algorithm 463.
5145
5146 double a;
5147 int b, x;
5148
5149 magform ((hi-lo)/ticint, a, b);
5150
5151 static const double sqrt_2 = sqrt (2.0);
5152 static const double sqrt_10 = sqrt (10.0);
5153 static const double sqrt_50 = sqrt (50.0);
5154
5155 if (a < sqrt_2)
5156 x = 1;
5157 else if (a < sqrt_10)
5158 x = 2;
5159 else if (a < sqrt_50)
5160 x = 5;
5161 else
5162 x = 10;
5163
5164 return x * std::pow (10., b);
5165
5166 }
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?34207>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #34207] gl-render does not set tick labels for log axes appropriately, Michael Godfrey, 2011/09/04
- [Octave-bug-tracker] [bug #34207] gl-render does not set tick labels for log axes appropriately, Ben Abbott, 2011/09/05
- [Octave-bug-tracker] [bug #34207] gl-render does not set tick labels for log axes appropriately,
Ben Abbott <=
- [Octave-bug-tracker] [bug #34207] gl-render does not set tick labels for log axes appropriately, Michael Godfrey, 2011/09/05
- [Octave-bug-tracker] [bug #34207] gl-render does not set tick labels for log axes appropriately, Michael Godfrey, 2011/09/05
- [Octave-bug-tracker] [bug #34207] gl-render does not set tick labels for log axes appropriately, Michael Godfrey, 2011/09/05
- [Octave-bug-tracker] [bug #34207] gl-render does not set tick labels for log axes appropriately, Ben Abbott, 2011/09/06
- [Octave-bug-tracker] [bug #34207] gl-render does not set tick labels for log axes appropriately, Michael Godfrey, 2011/09/06
- [Octave-bug-tracker] [bug #34207] gl-render does not set tick labels for log axes appropriately, Michael Godfrey, 2011/09/06
- [Octave-bug-tracker] [bug #34207] gl-render does not set tick labels for log axes appropriately, Ben Abbott, 2011/09/06
- Re: [Octave-bug-tracker] [bug #34207] gl-render does not set tick labels for log axes appropriately, Michael D Godfrey, 2011/09/07
- [Octave-bug-tracker] [bug #34207] gl-render does not set tick labels for log axes appropriately, Ben Abbott, 2011/09/16
- [Octave-bug-tracker] [bug #34207] gl-render does not set tick labels for log axes appropriately, Ben Abbott, 2011/09/18