@@ -707,40 +707,41 @@ def get(o, *args, **kwargs):
707707
708708def setp (h , * args , ** kwargs ):
709709 """
710- matplotlib supports the use of setp ("set property") and getp to set
711- and get object properties, as well as to do introspection on the
712- object For example, to set the linestyle of a line to be dashed, you
713- can do
710+ matplotlib supports the use of :func:` setp` ("set property") and
711+ :func:`getp` to set and get object properties, as well as to do
712+ introspection on the object. For example, to set the linestyle of a
713+ line to be dashed, you can do::
714714
715715 >>> line, = plot([1,2,3])
716716 >>> setp(line, linestyle='--')
717717
718718 If you want to know the valid types of arguments, you can provide the
719- name of the property you want to set without a value
719+ name of the property you want to set without a value::
720720
721721 >>> setp(line, 'linestyle')
722722 linestyle: [ '-' | '--' | '-.' | ':' | 'steps' | 'None' ]
723723
724724 If you want to see all the properties that can be set, and their
725- possible values, you can do
725+ possible values, you can do::
726726
727727 >>> setp(line)
728728 ... long output listing omitted
729729
730- setp operates on a single instance or a list of instances. If you
731- are in query mode introspecting the possible values, only the first
732- instance in the sequence is used. When actually setting values,
733- all the instances will be set. Eg, suppose you have a list of two
734- lines, the following will make both lines thicker and red
730+ :func:`setp` operates on a single instance or a list of instances.
731+ If you are in query mode introspecting the possible values, only
732+ the first instance in the sequence is used. When actually setting
733+ values, all the instances will be set. Eg., suppose you have a
734+ list of two lines, the following will make both lines thicker and
735+ red::
735736
736737 >>> x = arange(0,1.0,0.01)
737738 >>> y1 = sin(2*pi*x)
738739 >>> y2 = sin(4*pi*x)
739740 >>> lines = plot(x, y1, x, y2)
740741 >>> setp(lines, linewidth=2, color='r')
741742
742- setp works with the matlab(TM) style string/value pairs or with
743- python kwargs. For example, the following are equivalent
743+ :func:` setp` works with the matlab(TM) style string/value pairs or
744+ with python kwargs. For example, the following are equivalent
744745
745746 >>> setp(lines, 'linewidth', 2, 'color', r') # matlab style
746747 >>> setp(lines, linewidth=2, color='r') # python style
0 commit comments