@@ -514,7 +514,7 @@ There are five levels at which you can emit messages.
514514
515515- `logging.critical ` and `logging.error ` are really only there for errors that
516516 will end the use of the library but not kill the interpreter.
517- - `logging.warning ` and `cbook._warn_external ` are used to warn the user,
517+ - `logging.warning ` and `. cbook._warn_external ` are used to warn the user,
518518 see below.
519519- `logging.info ` is for information that the user may want to know if the
520520 program behaves oddly. They are not displayed by default. For instance, if
@@ -529,18 +529,17 @@ There are five levels at which you can emit messages.
529529By default, `logging ` displays all log messages at levels higher than
530530`logging.WARNING ` to `sys.stderr `.
531531
532- The `logging tutorial `_ suggests that the difference
533- between `logging.warning ` and `cbook._warn_external ` (which uses
534- `warnings.warn `) is that `cbook._warn_external ` should be used for things the
535- user must change to stop the warning (typically in the source), whereas
536- `logging.warning ` can be more persistent. Moreover, note that
537- `cbook._warn_external ` will by default only emit a given warning *once * for
538- each line of user code, whereas `logging.warning ` will display the message
539- every time it is called.
532+ The `logging tutorial `_ suggests that the difference between `logging.warning `
533+ and `.cbook._warn_external ` (which uses `warnings.warn `) is that
534+ `.cbook._warn_external ` should be used for things the user must change to stop
535+ the warning (typically in the source), whereas `logging.warning ` can be more
536+ persistent. Moreover, note that `.cbook._warn_external ` will by default only
537+ emit a given warning *once * for each line of user code, whereas
538+ `logging.warning ` will display the message every time it is called.
540539
541540By default, `warnings.warn ` displays the line of code that has the `warn ` call.
542541This usually isn't more informative than the warning message itself. Therefore,
543- Matplotlib uses `cbook._warn_external ` which uses `warnings.warn `, but goes
542+ Matplotlib uses `. cbook._warn_external ` which uses `warnings.warn `, but goes
544543up the stack and displays the first line of code outside of Matplotlib.
545544For example, for the module::
546545
@@ -563,7 +562,7 @@ will display::
563562 UserWarning: Attempting to set identical bottom==top
564563 warnings.warn('Attempting to set identical bottom==top')
565564
566- Modifying the module to use `cbook._warn_external `::
565+ Modifying the module to use `. cbook._warn_external `::
567566
568567 from matplotlib import cbook
569568
0 commit comments