Package schrodinger :: Package application :: Package bioluminate :: Module sliderchart
[hide private]
[frames] | no frames]

Module sliderchart

Tools for using matplotlib charts.

Copyright Schrodinger, LLC. All rights reserved.

Classes [hide private]
  SliderPlot
A chart that contains four lines the user can slide to select a region of the chart.
  SlidableLine
A line on a matplotlib plot that can be grabbed and moved by the user
  SlidableHLine
A horizontal line on a matplotlib plot that can be grabbed and moved by the user
  SlidableVLine
A vertical line on a matplotlib plot that can be grabbed and moved by the user
Functions [hide private]
 
prevent_overlapping_x_labels(canvas, axes_number=0)
Given a canvas that contains a figure that contains at least one axes instance, checks the x-axis tick labels to make sure they don't overlap.
Variables [hide private]
  COLOR_NAME = ['black', 'red', 'green', 'blue', 'purple', 'yell...
  MARKER_TRANSLATION = {'arrow': '^', 'circle': 'o', 'cross': '+...
  app = QtGui.QApplication([])
  lines = open(sys.argv [1], "r").read().split("\n")
  x = []
  y = []
  y_err = []
  frame = SliderPlot(x, y, x_label= "time (ps)", y_label= 'Y val...
  __package__ = 'schrodinger.application.bioluminate'
Function Details [hide private]

prevent_overlapping_x_labels(canvas, axes_number=0)

 

Given a canvas that contains a figure that contains at least one axes instance, checks the x-axis tick labels to make sure they don't overlap. If they do, the number of ticks is reduced until there is no overlap.

Parameters:
  • canvas (matplotlib canvas object) - the canvas that contains the figure/axes objects
  • axes_number (int) - the index of the axes on the figure to examine. Default is 0, which is the first set of axis added to the figure.

Variables Details [hide private]

COLOR_NAME

Value:
['black',
 'red',
 'green',
 'blue',
 'purple',
 'yellow',
 'orange',
 'violet',
...

MARKER_TRANSLATION

Value:
{'arrow': '^',
 'circle': 'o',
 'cross': '+',
 'diamond': 'd',
 'rectangle': 's',
 'square': 's',
 'x': 'x'}

frame

Value:
SliderPlot(x, y, x_label= "time (ps)", y_label= 'Y values', shade_colo\
r= 'pink', hslider_color= 'y', vslider_color= 'green', slider_thicknes\
s= 10, slider_pick_tolerance= 20)