Skip to content

Instantly share code, notes, and snippets.

View ajoros's full-sized avatar

Andrew Joros ajoros

  • Desert Research Institute
  • Reno, NV
View GitHub Profile
import numpy as np
import pandas as pd
from collections import OrderedDict
from bokeh.plotting import figure
from bokeh.models import Plot, ColumnDataSource
from bokeh.properties import Instance
from bokeh.server.app import bokeh_app
from bokeh.server.utils.plugins import object_page
from bokeh.models.renderers import GlyphRenderer
from bokeh.models.widgets import (
@ajoros
ajoros / Toggle2.py
Created July 24, 2015 21:01
Toggle2.py
import pandas as pd
from bokeh.plotting import figure
from bokeh.models import Plot, ColumnDataSource
from bokeh.properties import Instance
from bokeh.server.app import bokeh_app
from bokeh.server.utils.plugins import object_page
from bokeh.models.widgets import (
HBox,
VBoxForm,
CheckboxGroup)
import logging
logging.basicConfig(level=logging.DEBUG)
import pandas as pd
from bokeh.plotting import figure
from bokeh.models import Plot, ColumnDataSource
from bokeh.properties import Instance
from bokeh.server.app import bokeh_app
from bokeh.server.utils.plugins import object_page
from bokeh.models.widgets import (
# -*- coding: utf-8 -*-
"""
Created on Wed Apr 15 11:06:23 2015
@author: ajoros
"""
import pandas as pd
import sqlalchemy as SA
from sqlalchemy.engine import create_engine, url
import logging
logging.basicConfig(level=logging.DEBUG)
import pandas as pd
from pprint import pprint
from bokeh.plotting import figure
from bokeh.models import Plot, ColumnDataSource
from bokeh.properties import Instance
from bokeh.server.app import bokeh_app
from bokeh.server.utils.plugins import object_page
@ajoros
ajoros / figures.py
Created June 29, 2016 02:30
figs for qt plots
import matplotlib
matplotlib.use('Qt5Agg')
from matplotlib.backends.backend_qt5agg import (
FigureCanvasQTAgg as FigureCanvas)
from matplotlib.figure import Figure
import matplotlib.lines as mlines
from matplotlib.patches import Rectangle
import matplotlib.pyplot as plt
plt.style.use('bmh')
import matplotlib
matplotlib.use('Qt5Agg')
from matplotlib.backends.backend_qt5agg import (
FigureCanvasQTAgg as FigureCanvas)
from matplotlib.figure import Figure
from matplotlib.patches import Rectangle
import matplotlib.pyplot as plt
plt.style.use('bmh')