Ticket #13891: trac_13891_note-sl.patch

File trac_13891_note-sl.patch, 995 bytes (added by slabbe, 6 years ago)
  • sage/graphs/graph_plot.py

    # HG changeset patch
    # User Sebastien Labbe <slabqc at gmail.com>
    # Date 1359559456 -3600
    # Node ID 5fdfa3523b0e2e2f35bd45167471aadd19ac87a6
    # Parent  57802974ff409cdcf3d1b07195ac3c7119181c86
    adding one note about DEFAUT_PLOT_OPTIONS and DEFAULT_SHOW_OPTIONS
    
    diff --git a/sage/graphs/graph_plot.py b/sage/graphs/graph_plot.py
    a b This module defines two dictionaries con 
    8181dictionaries are ``sage.graphs.graph_plot.DEFAULT_SHOW_OPTIONS`` and
    8282``sage.graphs.graph_plot.DEFAULT_PLOT_OPTIONS``.
    8383
     84Note that, if ``g`` denotes a graph:
     85
     86 -  ``DEFAULT_SHOW_OPTIONS`` affects ``g.show()``
     87 -  ``DEFAULT_PLOT_OPTIONS`` affects ``g.plot()``
     88
     89but
     90
     91 -  ``DEFAULT_SHOW_OPTIONS`` does not affect ``g.plot()``
     92 -  ``DEFAULT_PLOT_OPTIONS`` affects ``g.show()``
     93
    8494Obviously, these values are overruled when arguments are given explicitely.
    8595
    8696Here is how to define the default size of a graph drawing to be ``[6,6]``. The