14 #include "msdevstudio/MSconfig.h"
42 using namespace hippodraw;
46 m_axis_z_origin( 0.0 ),
53 m_axis_z_origin( axis_rep.m_axis_z_origin ),
54 m_axis_depth( axis_rep.m_axis_depth )
85 const std::string & z_label )
92 string tex_snippet = z_label.substr(4);
101 float mx = margin_rect.
getX ();
103 float my = margin_rect.
getY ();
106 float y_font_size = ( dh - mh ) / 2 * 0.20;
107 float x_font_size = ( mw * 2 ) / z_label.size() * 2 / 3;
111 float x = mx + 0.5 * mw;
120 view.
drawText ( z_label, x, y, 0.0, 0.0,
'c',
'b',
142 const vector< AxisTick > & ticks = axisModel.
getTicks ();
143 if ( ticks.empty() )
return;
148 unsigned int size = 2 * ticks.size ();
156 double tick_length = 5;
157 double y_base = view_rect.
getY() - 24;
159 for (
unsigned int i = 0; i < ticks.size(); i++ ) {
160 double user_z = ticks[i].value ();
167 xv.push_back ( view_x );
168 yv.push_back ( y_base );
169 xv.push_back ( view_x );
170 yv.push_back ( y_base + tick_length );
182 vector < double > xv;
183 vector < double > yv;
185 const vector< AxisTick > & ticks = axisModel.
getTicks ();
186 unsigned int size = ticks.size ();
187 if ( size == 0 )
return;
196 for ( ; i <
size; i++ ) {
197 double value = ticks[i].value ();
199 xv.push_back ( value );
200 yv.push_back ( 1.0 );
207 float y = margin.
getY() - 42;
210 for ( ; i <
size; i++ ) {
217 if ( !(axisModel.
isLog() ) ) {
219 float xx = margin_rect.
getX()
224 double mag = axisModel.
getPMag ();
225 int i = static_cast <
int > ( mag );
244 double y_base = margin.
getY() - 22;
247 double value = range.
low ();
252 for (
float i = 0; i <= margin.
getWidth() ; i++ ) {
254 const Color & rep_color = plotter->repColor();
256 Color color = rep_color;
261 margin.
getX() + i + 1.0,