Skip to content

Commit

Permalink
Merge pull request #499 from ioam/options_example
Browse files Browse the repository at this point in the history
Options Tutorial example of customizing composite object via __call__
  • Loading branch information
jlstevens committed Feb 11, 2016
2 parents e433829 + abda06c commit 87bf91c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions doc/Tutorials/Options.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,24 @@
"green_sine"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"To customize options of individual components in composite objects like Overlays or Layouts you can either specify the options on each individual component or specify which object to customize using the ``{type}[.{group}[.{label}]]`` syntax."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"(image + curve)(style={'Image.Function.Sine': dict(cmap='Reds'), 'Curve': dict(color='indianred')})"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

0 comments on commit 87bf91c

Please sign in to comment.