Public Member Functions | |
def | __init__ (self, xmin, xmax, ymin, ymax, d, kwds) |
def | __repr__ (self) |
def | SVG (self) |
Public Attributes | |
axis_attr | |
d | |
flipx | |
flipy | |
height | |
last_window | |
minusInfinity | |
text_attr | |
width | |
x | |
x2labels | |
xlabels | |
xlogbase | |
xminiticks | |
xticks | |
xtitle | |
y | |
y2labels | |
ylabels | |
ylogbase | |
ymax | |
yminiticks | |
yticks | |
ytitle | |
Static Public Attributes | |
dictionary | axis_defaults = {} |
float | minitick_length = 0.75 |
dictionary | text_defaults = {"stroke":"none", "fill":"black", "font-size":5} |
int | text_xaxis_offset = 1. |
int | text_xtitle_offset = 6. |
int | text_yaxis_offset = 2. |
int | text_ytitle_offset = 12. |
float | tick_length = 1.5 |
def svgfig.Frame.__init__ | ( | self, | |
xmin, | |||
xmax, | |||
ymin, | |||
ymax, | |||
d, | |||
kwds | |||
) |
Acts like Fig, but draws a coordinate frame around the data. You also need to supply plot ranges. Frame(xmin, xmax, ymin, ymax, obj, obj, obj..., keyword options...) xmin, xmax required minimum and maximum x values (in the objs' coordinates) ymin, ymax required minimum and maximum y values (in the objs' coordinates) obj optional list drawing primatives keyword options keyword list options defined below The following are keyword options, with their default values: x, y 20, 5 upper-left corner of the Frame in SVG coordinates width, height 75, 80 width and height of the Frame in SVG coordinates flipx, flipy False, True flip the sign of the coordinate axis minusInfinity -1000 if an axis is logarithmic and an object is plotted at 0 or a negative value, -1000 will be used as a stand-in for NaN xtitle None if a string, label the x axis xticks -10 request ticks according to the standard tick specification (see help(Ticks)) xminiticks True request miniticks according to the standard minitick specification xlabels True request tick labels according to the standard tick label specification xlogbase None if a number, the axis and transformation are logarithmic with ticks at the given base (10 being the most common) (same for y) text_attr {} a dictionary of attributes for label text axis_attr {} a dictionary of attributes for the axis lines
Definition at line 887 of file svgfig.py.
def svgfig.Frame.__repr__ | ( | self | ) |
Definition at line 884 of file svgfig.py.
References svgfig.Fig.d, svgfig.Plot.d, and svgfig.Frame.d.
Referenced by data_sources.json_file.__str__(), and datamodel.Object.__str__().
def svgfig.Frame.SVG | ( | self | ) |
Apply the window transformation and return an SVG object.
Definition at line 956 of file svgfig.py.
svgfig.Frame.d |
Definition at line 919 of file svgfig.py.
Referenced by svgfig.Frame.__repr__(), svgfig.Path.__repr__(), svgfig.Poly.__repr__(), svgfig.Text.__repr__(), svgfig.TextGlobal.__repr__(), svgfig.Dots.__repr__(), svgfig.XErrorBars.__repr__(), svgfig.YErrorBars.__repr__(), svgfig.Poly.Path(), svgfig.Path.SVG(), svgfig.Text.SVG(), svgfig.TextGlobal.SVG(), svgfig.Dots.SVG(), svgfig.XErrorBars.SVG(), and svgfig.YErrorBars.SVG().
svgfig.Frame.height |
Definition at line 930 of file svgfig.py.
Referenced by TkAlMap.TkAlMap.draw_cms_prelim(), presentation.PageLayout.fit(), TkAlMap.TkAlMap.load_geometry(), and svgfig.Dots.SVG().
svgfig.Frame.text_attr |
Definition at line 947 of file svgfig.py.
Referenced by svgfig.Axes.SVG().
|
static |
Definition at line 874 of file svgfig.py.
Referenced by svgfig.CurveAxis.__init__().
svgfig.Frame.width |
Definition at line 929 of file svgfig.py.
Referenced by python.rootplot.utilities.Hist.__init_TGraph(), python.rootplot.root2matplotlib.Hist.bar(), python.rootplot.root2matplotlib.Hist.barh(), python.rootplot.utilities.Hist.delete_bin(), TkAlMap.TkAlMap.draw_cms_prelim(), presentation.PageLayout.fit(), TkAlMap.TkAlMap.load_geometry(), and svgfig.Dots.SVG().
svgfig.Frame.x |
Definition at line 927 of file svgfig.py.
Referenced by python.rootplot.utilities.Hist.__init_TGraph(), svgfig.Curve.Sample.__repr__(), svgfig.Text.__repr__(), svgfig.TextGlobal.__repr__(), svgfig.VLine.__repr__(), svgfig.Ellipse.__repr__(), edmStreamStallGrapher.Point.__str__(), python.rootplot.root2matplotlib.Hist._prepare_xaxis(), python.rootplot.root2matplotlib.Hist._prepare_yaxis(), python.rootplot.root2matplotlib.Hist2D.box(), python.rootplot.root2matplotlib.Hist2D.contour(), python.rootplot.utilities.Hist.delete_bin(), python.rootplot.root2matplotlib.Hist.errorbar(), python.rootplot.root2matplotlib.Hist.errorbarh(), geometryXMLparser.Alignable.pos(), ntupleDataFormat._HitObject.r(), ntupleDataFormat._HitObject.r3D(), svgfig.Text.SVG(), svgfig.TextGlobal.SVG(), and python.rootplot.utilities.Hist.TGraph().
svgfig.Frame.xlabels |
Definition at line 937 of file svgfig.py.
Referenced by svgfig.Axes.SVG().
svgfig.Frame.xlogbase |
Definition at line 939 of file svgfig.py.
Referenced by svgfig.Axes.SVG().
svgfig.Frame.xminiticks |
Definition at line 936 of file svgfig.py.
Referenced by svgfig.Axes.SVG().
svgfig.Frame.xticks |
Definition at line 935 of file svgfig.py.
Referenced by svgfig.Axes.SVG().
svgfig.Frame.y |
Definition at line 928 of file svgfig.py.
Referenced by python.rootplot.utilities.Hist.__getitem__(), python.rootplot.utilities.Hist.__init_TGraph(), python.rootplot.utilities.Hist.__iter__(), svgfig.Curve.Sample.__repr__(), svgfig.Text.__repr__(), svgfig.TextGlobal.__repr__(), svgfig.HLine.__repr__(), svgfig.Ellipse.__repr__(), python.rootplot.utilities.Hist.__setitem__(), edmStreamStallGrapher.Point.__str__(), python.rootplot.root2matplotlib.Hist.bar(), python.rootplot.root2matplotlib.Hist.barh(), python.rootplot.root2matplotlib.Hist2D.box(), python.rootplot.root2matplotlib.Hist2D.contour(), python.rootplot.utilities.Hist.delete_bin(), python.rootplot.utilities.Hist.divide_wilson(), python.rootplot.root2matplotlib.Hist.errorbar(), python.rootplot.root2matplotlib.Hist.errorbarh(), python.rootplot.root2matplotlib.Hist.hist(), python.rootplot.utilities.Hist.min(), geometryXMLparser.Alignable.pos(), ntupleDataFormat._HitObject.r(), ntupleDataFormat._HitObject.r3D(), python.rootplot.utilities.Hist.scale(), svgfig.Text.SVG(), svgfig.TextGlobal.SVG(), python.rootplot.utilities.Hist.TGraph(), and python.rootplot.utilities.Hist.TH1F().
svgfig.Frame.ylabels |
Definition at line 943 of file svgfig.py.
Referenced by svgfig.Axes.SVG().
svgfig.Frame.ylogbase |
Definition at line 945 of file svgfig.py.
Referenced by svgfig.Axes.SVG().
svgfig.Frame.ymax |
Definition at line 918 of file svgfig.py.
Referenced by svgfig.YAxis.__repr__(), svgfig.Axes.__repr__(), svgfig.VGrid.__repr__(), svgfig.Grid.__repr__(), and svgfig.Axes.SVG().
svgfig.Frame.yminiticks |
Definition at line 942 of file svgfig.py.
Referenced by svgfig.Axes.SVG().
svgfig.Frame.yticks |
Definition at line 941 of file svgfig.py.
Referenced by svgfig.Axes.SVG().