Package dataplot :: Package shellscript :: Class Plot
[show private | hide private]
[frames | no frames]

Type Plot

 object --+    
          |    
GenericPlot --+
              |
             Plot


Make plots through the filesystem and command line programs.

Subclasses need to define:

1. A method get_plot_args, which returns a dictionary with at
   least one key 'data' which maps to a text string that will be
   written out to the input file for the command line program.

2. The attribute cmdtmp, which is a template string that will be
   filled in with the dictionary returned by get_plot_args. This
   string will be the command line that is executed to make the
   plot. You should use the 'infile' key in your string, i.e.

   cmdtmp='/usr/local/bin/hairpinplot.bash %(infile)s'

Method Summary
  get_cline(self)
Construct command line based on template and dict.
  get_cline_template_dict(self)
Dict used to fill in self.cmdtmp string.
  makefile(self)
Write data to infile and then execute the commandline.
  write_data_to_infile(self)
Write data from get_plot_args into infile specified.
    Inherited from GenericPlot
  __init__(self, basename, tocall, **kwargs)
Make a new plot to display.
  __repr__(self)
  convert(self)
Convert from PDF to other formats using ImageMagick.
  do_chgrp(self)
Change group write perms if requested.
  do_chgrp_on(self, fn)
  from_filename(self)
  from_url(self)
  get_app_dirs(self)
Dig through settings.INSTALLED_APPS for full paths.
  get_filenames(self)
Return dictionary of image filenames.
  get_full_base(self)
  get_plot_args(self)
Gather input data from defaults and return value of tocall.
  get_urls(self)
Return dictionary of image URLs.
  makedirs(self)
Make subdirectories of media/ for this plot.
  makefiles(self)
Make initial file and conversions.
  prefix(self, pre)
Generalized form of url/filename reporting.
  render_html(self, tfile)
Render a HTML template with self as context 'plot'.
  to_html(self)
Render the PNG image and link to the PDF.
  to_html_nolink(self)
Render the PNG without link to PDF.
  to_html_thumb(self)
Render the PNG thumb.
  view(self)
Use some other program to look at rendered source image.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
    Inherited from GenericPlot
bool autosave = False
NoneType chgrp = None                                                                  
str convert_binary = 'convert'
bool enable_caching = False
str view_program = 'display'

Method Details

get_cline(self)

Construct command line based on template and dict.

get_cline_template_dict(self)

Dict used to fill in self.cmdtmp string.

makefile(self)

Write data to infile and then execute the commandline.

This presumably makes the convert_from file.

write_data_to_infile(self)

Write data from get_plot_args into infile specified.

Presumably this data is the input for a command-line program.

Generated by Epydoc 2.1 on Tue Apr 29 23:35:05 2008 http://epydoc.sf.net