@@ -408,22 +408,19 @@ def rotate(self, rad_angle=None, deg_angle=None):
408408 :math:`R(\\ theta)` is defined by:
409409
410410 .. math::
411- \\ left(\\ begin{matrix} cos (\\ theta) & - sin (\\ theta) \\
412-
411+ \\ left(\\ begin{matrix} cos (\\ theta) & - sin (\\ theta) \\ \\
413412 sin (\\ theta) & cos (\\ theta) \\ end{matrix}\\ right)
414413
415414 Given the coordinates of point :math:`P` such that
416415
417416 .. math::
418- (P) = \\ left(\\ begin{matrix} x \\
419-
417+ P = \\ left(\\ begin{matrix} x \\ \\
420418 y \\ end{matrix}\\ right),
421419
422420 Then, the rotated coordinates will be:
423421
424422 .. math::
425- P^{'} = \\ left(\\ begin{matrix} x^{'} \\
426-
423+ P^{'} = \\ left(\\ begin{matrix} x^{'} \\ \\
427424 y^{'} \\ end{matrix}\\ right)
428425 = R (\\ theta) \\ cdot P
429426
@@ -488,9 +485,6 @@ def reflect(self):
488485 """
489486 Reflect the airfoil coordinates about the origin, i.e. a mirror
490487 transformation is performed about both the X-axis and the Y-axis.
491-
492- We note that if the foil is cenetered by its reference point at the
493- origin, then the reflection is just a simple flip.
494488 """
495489 self .xup_coordinates *= - 1
496490 self .xdown_coordinates *= - 1
@@ -546,26 +540,27 @@ def plot(self,
546540 raise ValueError ('One or all the coordinates have None value.' )
547541
548542 if profile :
549- plt .plot (self .xup_coordinates , self .yup_coordinates )
550- plt .plot (self .xdown_coordinates , self .ydown_coordinates )
543+ plt .plot (self .xup_coordinates , self .yup_coordinates , label = 'Upper profile' )
544+ plt .plot (self .xdown_coordinates , self .ydown_coordinates , label = 'Lower profile' )
551545
552546 if chord_line :
553547 if self .chord_line is None :
554548 raise ValueError (
555549 'Chord line is None. You must compute it first' )
556- plt .plot (self .chord_line [0 ], self .chord_line [1 ])
550+ plt .plot (self .chord_line [0 ], self .chord_line [1 ], label = 'Chord line' )
557551
558552 if camber_line :
559553 if self .camber_line is None :
560554 raise ValueError (
561555 'Camber line is None. You must compute it first' )
562- plt .plot (self .camber_line [0 ], self .camber_line [1 ])
556+ plt .plot (self .camber_line [0 ], self .camber_line [1 ], label = 'Camber line' )
563557
564558 if ref_point :
565- plt .scatter (self .reference_point [0 ], self .reference_point [1 ])
559+ plt .scatter (self .reference_point [0 ], self .reference_point [1 ], s = 15 , label = 'Reference point' )
566560
567561 plt .grid (linestyle = 'dotted' )
568562 plt .axis ('equal' )
563+ plt .legend ()
569564
570565 if outfile :
571566 if not isinstance (outfile , str ):
0 commit comments