/doc/examples/colour_schemes/flowchart_colours.rst

https://code.google.com/p/ruffus/ · ReStructuredText · 48 lines · 32 code · 16 blank · 0 comment · 0 complexity · e1342407092361b712db1215497f13f9 MD5 · raw file

  1. .. include:: ../../global.inc
  2. .. _flowchart_colours:
  3. ******************
  4. Flowchart colours
  5. ******************
  6. * See :ref:`code <flowchart_colours.code>` for experimenting with colours
  7. The appearance of Ruffus flowcharts produced by :ref:`pipeline_printout_graph <pipeline_functions.pipeline_printout_graph>`
  8. can be extensively customised.
  9. This is mainly controlled by the :ref:`user_colour_scheme <pipeline_functions.pipeline_printout_graph.user_colour_scheme>` (note UK spelling of "colour") parameter
  10. Example:
  11. Use colour scheme index = 1
  12. ::
  13. pipeline_printout_graph ("flowchart.svg", "svg", [final_task],
  14. user_colour_scheme = {
  15. "colour_scheme_index" :1,
  16. "Pipeline" :{"fontcolor" : '"#FF3232"' },
  17. "Key" :{"fontcolor" : "Red",
  18. "fillcolor" : '"#F6F4F4"' },
  19. "Task to run" :{"linecolor" : '"#0044A0"' },
  20. "Final target" :{"fillcolor" : '"#EFA03B"',
  21. "fontcolor" : "black",
  22. "dashed" : 0 }
  23. })
  24. There are 8 colour schemes by setting ``"colour_scheme_index"``:
  25. ::
  26. pipeline_printout_graph ("flowchart.svg", "svg", [final_task],
  27. user_colour_scheme = {"colour_scheme_index" :6})
  28. These colours were chosen after much fierce arguments between the authors and friends, and much
  29. inspiration from http://kuler.adobe.com/#create/fromacolor. Please
  30. feel free to submit any additional sets of colours for our consideration.
  31. (Click here for image in :download:`svg <../../images/flowchart_colour_schemes.svg>`.)
  32. .. image:: ../../images/flowchart_colour_schemes.png