source: sasview/sansmodels/README.txt @ c510183

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since c510183 was c510183, checked in by Gervaise Alina <gervyh@…>, 16 years ago
  • Property mode set to 100644
File size: 1.5 KB
Line 
1Learning about wx.Panel and matplotlib...
2
3
4The following URL has an example of putting matplotlib plots in a wx panel:
5       
6        http://www.scipy.org/Matplotlib_figure_in_a_wx_panel
7
8
9       
10The code provided here is a (very) simplified version of how we do plots in
11SliceView using a Graph object containing many Plottable objects.
12
13Main.py:                Shows how to create the application
14
15PlotPanel.py:   PlotPanel is the base class for our plots.
16
17Plotter1D:              ModelPanel1D inherits from PlotPanel to show a single plot.
18                                Right-click to get the context menu and load a file to display.
19                                Notice the log-scale toggle in the context menu.
20                               
21plottables.py:  This file, written by Paul Kienzle, implements the Graph and Plottable classes.
22
23
24
25Coding rules:
26
27  - All function and class method names start with an lowercase letter.
28  - All class names start with an uppercase.
29  - Private methods start with an underline character (e.g. blah._myPrivateClass).
30  - All functions, class methods and class should be documented with docstrings.
31  - Never duplicate code. Write a function and re-use it.
32  - Minimize the disk access. If you have data in memory. Store it in memory and
33    transform it whenever you can rather than reloading it.
34 
35Interface style rules:
36  - Always try to be consistent in the way you present options to users.
37    (example: if you have a toggle option for an axis, try to do the same for
38      other axes if you have the same number of options)
39 
40 
Note: See TracBrowser for help on using the repository browser.