push bullet lists over 2 spaces to get them to show up as such in the… (#1912)

* push bullet lists over 2 spaces to get them to show up as such in the docs

* separate the literal block from the bullet list
This commit is contained in:
Martin Chase 2021-07-21 07:12:35 -07:00 committed by GitHub
parent 66ec0996f4
commit 1d40d50b89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
35 changed files with 269 additions and 254 deletions

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import numpy as np
from .Qt import QtGui, QtCore
from .functions import mkColor, eq, colorDistance
@ -18,7 +19,7 @@ def listMaps(source=None):
Parameters
----------
source: str, optional
Color map source. If omitted, locally stored maps are listed. Otherwise
Color map source. If omitted, locally stored maps are listed. Otherwise:
- 'matplotlib' lists maps that can be imported from Matplotlib
- 'colorcet' lists maps that can be imported from ColorCET
@ -68,7 +69,7 @@ def get(name, source=None, skipCache=False):
be a path to a file in the local folder. See the files in the
``pyqtgraph/colors/maps/`` folder for examples of the format.
source: str, optional
If omitted, a locally stored map is returned. Otherwise
If omitted, a locally stored map is returned. Otherwise:
- 'matplotlib' imports a map defined by Matplotlib.
- 'colorcet' imports a map defined by ColorCET.

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from ..Qt import QtGui, QtCore
from .GraphicsObject import GraphicsObject
from .. import getConfigOption

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from .. import functions as fn
from .GraphicsObject import GraphicsObject
from .ScatterPlotItem import ScatterPlotItem

View File

@ -52,26 +52,26 @@ class PlotItem(GraphicsWidget):
add any QGraphicsItem to the view.
This class wraps several methods from its internal ViewBox:
:func:`setXRange <pyqtgraph.ViewBox.setXRange>`,
:func:`setYRange <pyqtgraph.ViewBox.setYRange>`,
:func:`setRange <pyqtgraph.ViewBox.setRange>`,
:func:`autoRange <pyqtgraph.ViewBox.autoRange>`,
:func:`setDefaultPadding <pyqtgraph.ViewBox.setDefaultPadding>`,
:func:`setXLink <pyqtgraph.ViewBox.setXLink>`,
:func:`setYLink <pyqtgraph.ViewBox.setYLink>`,
:func:`setAutoPan <pyqtgraph.ViewBox.setAutoPan>`,
:func:`setAutoVisible <pyqtgraph.ViewBox.setAutoVisible>`,
:func:`setLimits <pyqtgraph.ViewBox.setLimits>`,
:func:`viewRect <pyqtgraph.ViewBox.viewRect>`,
:func:`viewRange <pyqtgraph.ViewBox.viewRange>`,
:func:`setMouseEnabled <pyqtgraph.ViewBox.setMouseEnabled>`,
:func:`enableAutoRange <pyqtgraph.ViewBox.enableAutoRange>`,
:func:`disableAutoRange <pyqtgraph.ViewBox.disableAutoRange>`,
:func:`setAspectLocked <pyqtgraph.ViewBox.setAspectLocked>`,
:func:`invertY <pyqtgraph.ViewBox.invertY>`,
:func:`invertX <pyqtgraph.ViewBox.invertX>`,
:func:`register <pyqtgraph.ViewBox.register>`,
:func:`unregister <pyqtgraph.ViewBox.unregister>`
- :func:`setXRange <pyqtgraph.ViewBox.setXRange>`
- :func:`setYRange <pyqtgraph.ViewBox.setYRange>`
- :func:`setRange <pyqtgraph.ViewBox.setRange>`
- :func:`autoRange <pyqtgraph.ViewBox.autoRange>`
- :func:`setDefaultPadding <pyqtgraph.ViewBox.setDefaultPadding>`
- :func:`setXLink <pyqtgraph.ViewBox.setXLink>`
- :func:`setYLink <pyqtgraph.ViewBox.setYLink>`
- :func:`setAutoPan <pyqtgraph.ViewBox.setAutoPan>`
- :func:`setAutoVisible <pyqtgraph.ViewBox.setAutoVisible>`
- :func:`setLimits <pyqtgraph.ViewBox.setLimits>`
- :func:`viewRect <pyqtgraph.ViewBox.viewRect>`
- :func:`viewRange <pyqtgraph.ViewBox.viewRange>`
- :func:`setMouseEnabled <pyqtgraph.ViewBox.setMouseEnabled>`
- :func:`enableAutoRange <pyqtgraph.ViewBox.enableAutoRange>`
- :func:`disableAutoRange <pyqtgraph.ViewBox.disableAutoRange>`
- :func:`setAspectLocked <pyqtgraph.ViewBox.setAspectLocked>`
- :func:`invertY <pyqtgraph.ViewBox.invertY>`
- :func:`invertX <pyqtgraph.ViewBox.invertX>`
- :func:`register <pyqtgraph.ViewBox.register>`
- :func:`unregister <pyqtgraph.ViewBox.unregister>`
The ViewBox itself can be accessed by calling :func:`getViewBox() <pyqtgraph.PlotItem.getViewBox>`

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from math import atan2
from ..Qt import QtGui, QtCore
from ..Point import Point

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from math import atan2, degrees
from ..Qt import QtCore, QtGui
from ..Point import Point

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import subprocess, atexit, os, sys, time, random, socket, signal, inspect
import multiprocessing.connection
try:

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from ..Qt import QtCore, QtGui, QtWidgets
from OpenGL.GL import *
import OpenGL.GL.framebufferobjects as glfbo

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import numpy as np
from ..Qt import QtGui
from .. import functions as fn

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from ..Qt import QtGui, QtCore
from ..python2_3 import asUnicode
import os, weakref, re

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from collections import OrderedDict
import numpy as np
import copy
@ -55,6 +56,7 @@ class SystemSolver(object):
{ name: [value, type, constraint, allowed_constraints], ...}
Where:
* *value* is the default value. May be None if it has not been specified
yet.
* *type* may be float, int, bool, np.ndarray, ...

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import os
from ..Qt import QtCore, QtGui
from ..python2_3 import asUnicode

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import sys
from ..Qt import QtGui, QtCore
from ..SignalProxy import SignalProxy

View File

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from ..Qt import QtCore, QtGui
from ..ptime import time
from .. import functions as fn

View File

@ -1,4 +1,5 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os, sys, argparse, random
from shell import shell, ssh