original_docstring: Plot all features distance from core with time
      
      Parameters
      ----------
      ctx : :class:`wise.project.AnalysisContext`
      scales : int or list, optional
          Filter the results to scale or list of scales (in pixel)
      pa : bool, optional
          Additionaly plot the PA vs epoch
      feature_filter : :class:`wise.features.FeatureFilter`, optional
          Filter the results
      save_filename : str, optional
          If not None, the resulting maps will be saved in the project data dir
          with this filename.
  
  
      .. _tags: task_detection
      
docstring: Plot all features distance from core with time
  Parameters
  
  
  
  
docstring_tokens: Plot all features distance from core with time Parameters
code: def plot_all_features(ctx, scales=None, pa=False, feature_filter=None, save_filename=None):
      """Plot all features distance from core with time
      
      Parameters
      ----------
      ctx : :class:`wise.project.AnalysisContext`
      scales : int or list, optional
          Filter the results to scale or list of scales (in pixel)
      pa : bool, optional
          Additionaly plot the PA vs epoch
      feature_filter : :class:`wise.features.FeatureFilter`, optional
          Filter the results
      save_filename : str, optional
          If not None, the resulting maps will be saved in the project data dir
          with this filename.
  
  
      .. _tags: task_detection
      """
      if not ctx.result.has_detection_result():
          print "No result found. Run detect_all() or match_all() first."
          return
  
      ref_img = ctx.get_ref_image()
      projection = ctx.get_projection(ref_img)
      scales = _get_scales(scales, ctx.result.get_scales())
  
      if len(scales) == 0:
          print "No result found for this scales. Available scales:", ctx.result.get_scales()
          return
  
      data = wiseutils.SSPData.from_results(ctx.get_result(), projection, scales)
      if feature_filter is not None:
          data.filter(feature_filter)
  
      stack = plotutils.FigureStack()
  
      def do_plot(fig):
          ax = fig.subplots(nrows=1 + int(pa), reshape=False, sharex=True)
          colors = plotutils.ColorSelector()
  
          for scale, gdata in data.df.groupby('scale'):
              color = colors.get()
              features = wds.DatedFeaturesGroupScale(scale, features=gdata.features.values)
  
              wiseutils.plot_features_dfc(ax[0], projection, features, c=color)
  
              if pa:
                  wiseutils.plot_features_pa(ax[1], projection, features, c=color)
  
          ax[-1].set_xlabel("Epoch (years)")
          ax[0].set_ylabel("Distance from core (mas)")
          
          if pa:
              ax[1].set_ylabel("PA (rad)")
  
      stack.add_replayable_figure("All features", do_plot)
  
      if save_filename is not None:
          stack.save_all(os.path.join(ctx.get_data_dir(), save_filename))
          stack.destroy()
      else:
          stack.show()
code_tokens: def plot_all_features ( ctx , scales = None , pa = False , feature_filter = None , save_filename = None ) : if not ctx . result . has_detection_result ( ) : print "No result found. Run detect_all() or match_all() first." return ref_img = ctx . get_ref_image ( ) projection = ctx . get_projection ( ref_img ) scales = _get_scales ( scales , ctx . result . get_scales ( ) ) if len ( scales ) == 0 : print "No result found for this scales. Available scales:" , ctx . result . get_scales ( ) return data = wiseutils . SSPData . from_results ( ctx . get_result ( ) , projection , scales ) if feature_filter is not None : data . filter ( feature_filter ) stack = plotutils . FigureStack ( ) def do_plot ( fig ) : ax = fig . subplots ( nrows = 1 + int ( pa ) , reshape = False , sharex = True ) colors = plotutils . ColorSelector ( ) for scale , gdata in data . df . groupby ( 'scale' ) : color = colors . get ( ) features = wds . DatedFeaturesGroupScale ( scale , features = gdata . features . values ) wiseutils . plot_features_dfc ( ax [ 0 ] , projection , features , c = color ) if pa : wiseutils . plot_features_pa ( ax [ 1 ] , projection , features , c = color ) ax [ - 1 ] . set_xlabel ( "Epoch (years)" ) ax [ 0 ] . set_ylabel ( "Distance from core (mas)" ) if pa : ax [ 1 ] . set_ylabel ( "PA (rad)" ) stack . add_replayable_figure ( "All features" , do_plot ) if save_filename is not None : stack . save_all ( os . path . join ( ctx . get_data_dir ( ) , save_filename ) ) stack . destroy ( ) else : stack . show ( )
short_docstring: Plot all features distance from core with time
  Parameters
short_docstring_tokens: Plot all features distance from core with time Parameters
comment: """Plot all features distance from core with time
      
      Parameters
      ----------
      ctx : :class:`wise.project.AnalysisContext`
      scales : int or list, optional
          Filter the results to scale or list of scales (in pixel)
      pa : bool, optional
          Additionaly plot the PA vs epoch
      feature_filter : :class:`wise.features.FeatureFilter`, optional
          Filter the results
      save_filename : str, optional
          If not None, the resulting maps will be saved in the project data dir
          with this filename.
  
  
      .. _tags: task_detection
      """