| |
- Method resolution order:
- ThereAndBackPlot
- dataplot.R.Plot
- dataplot.GenericPlot
- __builtin__.object
Data and other attributes defined here:
- r_code_filename = 'bikelog.plots.R'
- r_fun_name = 'df.to.work.and.back.plot'
Methods inherited from dataplot.R.Plot:
- __init__(self, *args, **kwargs)
- Infer default values at init.
- check_files_for_function(self)
- Go through files looking for the plot function.
- get_data_file(self)
- get_r_fun(self, e=None)
- Try to get the R function from the r environment.
Returns true if it worked.
- get_test_file(self)
- makefile(self)
- Start a PDF device and execute R plotting code.
Also executes the conversion to other formats.
- save_data(self)
- Save result of call to get_plot_args in Rdata.
- set_r_args(self)
- source_for_function(self)
- Source R code files looking for fun_name.
Raise error if fun_name is never found.
Data and other attributes inherited from dataplot.R.Plot:
- convert_from = 'pdf'
- convert_to = {'pdf': {'suffix': '.pdf'}, 'png': {'suffix': '.png'}, 'thumb': {'convert_args': '-resize 65x90', 'suffix': '-thumb.png'}}
- h = 6.5
- view_program = 'xpdf'
- w = 9
Methods inherited from dataplot.GenericPlot:
- __repr__(self)
- convert(self)
- Convert from PDF to other formats using ImageMagick.
- do_chgrp(self)
- Change group write perms if requested.
This is useful if your testing and production webservers have
different users but share the same media directory.
- 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.
1. defaults for this plot type
2. returned arguments from get_plot_args
- get_urls(self)
- Return dictionary of image URLs.
Make the plot if it doesn't exist or caching is off.
- makedirs(self)
- Make subdirectories of media/ for this plot.
- makefiles(self)
- Make initial file and conversions.
makefile() just makes the initial file.
- prefix(self, pre)
- Generalized form of url/filename reporting.
pre: prefix to attach to the basename and suffix.
- 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.
Will make the source image if it does not exist yet.
Data and other attributes inherited from dataplot.GenericPlot:
- __dict__ = <dictproxy object>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'GenericPlot' objects>
- list of weak references to the object (if defined)
- autosave = False
- chgrp = None
- convert_binary = 'convert'
- enable_caching = False
|