Skip to content

Commit

Permalink
Changed title_text and issue #4547 (#4562)
Browse files Browse the repository at this point in the history
* Changed title_text to title.text on a few lines

* test
  • Loading branch information
HuntJSparra authored and bryevdv committed Jun 18, 2016
1 parent 77cf671 commit dbbb8dd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 16 deletions.
9 changes: 5 additions & 4 deletions bokeh/core/compat/bokeh_renderer.py
Expand Up @@ -24,6 +24,7 @@
Grid, GridPlot, LinearAxis, Plot, CategoricalAxis, Legend)
from ...models.glyphs import (Asterisk, Circle, Cross, Diamond, InvertedTriangle,
Line, MultiLine, Patches, Square, Text, Triangle, X)
from ...models.annotations import Title
from ...plotting import DEFAULT_TOOLS
from ...plotting.helpers import _process_tools_arg
from ...util.dependencies import import_optional
Expand Down Expand Up @@ -82,7 +83,7 @@ def close_figure(self, fig):
plot_width=self.width,
plot_height=self.height)

_plot.title = ""
_plot.title.text = ''
# and add new tools
_tool_objs, _tool_map = _process_tools_arg(_plot, DEFAULT_TOOLS)
_plot.add_tools(*_tool_objs)
Expand Down Expand Up @@ -150,9 +151,9 @@ def close_axes(self, ax):
background_fill_color = convert_color(ax.get_axis_bgcolor())
self.plot.background_fill_color = background_fill_color
if self.xkcd:
self.plot.title_text_font = "Comic Sans MS, Textile, cursive"
self.plot.title_text_font_style = "bold"
self.plot.title_text_color = "black"
self.plot.title.text_font = "Comic Sans MS, Textile, cursive"
self.plot.title.text_font_style = "bold"
self.plot.title.text_color = "black"

# Add a "marker" Glyph to help the plot.renderers splitting in the GridPlot build
self._axes = getattr(self, "_axes", [0])
Expand Down
8 changes: 2 additions & 6 deletions examples/README.md
Expand Up @@ -3,7 +3,7 @@
## Examples in this repository

This directory contains many examples of different ways to use Bokeh. As Bokeh has been evolving
fast, it is important that you **ensure that the version of an example you're looking at matches
fast, it is important that you **ensure that the version of an example you're looking at matches
the version of Bokeh you are running**.

### [`app`](app/)
Expand Down Expand Up @@ -75,10 +75,6 @@ test another aspect of WebGL (e.g. blending of transparent glyphs).

* The [Bokeh User's Guide](http://bokeh.pydata.org/en/latest/docs/user_guide.html) has many plots with corresponding code samples throughout.

* Many examples of Bokeh being used with the [Jupyter](http://jupyter.org) notebook, including a set or tutorial notebooks, are collected in the [`bokeh-notebooks`](https://github.com/bokeh/bokeh-notebooks) repository. These notebooks are available statically rendered on the [Bokeh NBViewer page](http://nbviewer.ipython.org/github/bokeh/bokeh-notebooks/blob/master/index.ipynb).
* Many examples of Bokeh being used with the [Jupyter](http://jupyter.org) notebook, including a set or tutorial notebooks, are collected in the [`bokeh-notebooks`](https://github.com/bokeh/bokeh-notebooks) repository. These notebooks are available statically rendered on the [Bokeh NBViewer page](http://nbviewer.jupyter.org/github/bokeh/bokeh-notebooks/blob/master/index.ipynb).

* Larger examples, e.g. integrations with web application frameworks such as [Flask](http://flask.pocoo.org) or [Django](https://www.djangoproject.com), are collected in the [`bokeh-demos`](https://github.com/bokeh/bokeh-demos) repository.




10 changes: 4 additions & 6 deletions examples/plotting/notebook/README.md
@@ -1,8 +1,6 @@

The examples in this directory illustrate the use of Bokeh inside the IPython
notebook. To view the examples here, first execute 'ipython notebook' in this
directory. A web browser should automatically open up to the IPython Dashboard
at localhost:8891 (or you may navigate there manually). Click on any of the
The examples in this directory illustrate the use of Bokeh inside the Jupyter
notebook. To view the examples here, first execute 'jupyter notebook' in this
directory. A web browser should automatically open up to the Jupyter Dashboard
at localhost:8888 (or you may navigate there manually). Click on any of the
notebooks listed to open and explore.


0 comments on commit dbbb8dd

Please sign in to comment.