project : pySAXS description : wxPython Class to plot some data files to gnuplot authors : Antoine Thill, Olivier Spalla, Olivier Tache, Debasis Sen Last changes :
10-11-2009 OT : Replaced LsScattering by GuiSAXS.py 15-06-2009 OT : little changes for new models, replace with by with_ for gnuplot commands
change gnuplot plotting commands
- 05-06-2007 OT : big changes everywhere !
- add data management, no more reference to usaxs data directly
16-03-2007 OT : send loglog commands directly to gnuplot 13-03-2007 OT : add a SAXS and USAXS menu
add a HELP (about and licence dialog box) menu
Bases: wx._windows.Frame
extract data from file
feedback from evaluator dialog box #formula=”i1+i0+i2” #variableDict={‘i0’:’data1’,’i1’:’data2’,...} #listofdata=[‘data1’,data2’...]
feedback from evaluator dialog box #formula=”i1+i0+i2” #variableDict={‘i0’:’data1’,’i1’:’data2’,...} #listofdata=[‘data1’,data2’...]
if self.ISMODEL==True: self.gp(‘set title ‘ ‘+str(self.M.IntensityFunc).split(‘ ‘)[1]+’ ‘ ‘) GD=Gnuplot.Data(self.M.q,self.M.GetIntensity()*(self.M.q**self.plotexp),with=’l lt 2’) self.gp.replot(GD)
child dialog box ask to apply parameters
do the tramsission correction after dialog box LSTransmissionDlg
return a color name from the list of colors if n> length of list of colors, return at the beginning
self.gp=Gnuplot.Gnuplot() self.gp.reset()
Bases: wx._windows.Frame
self.NRJslider.SetTickFreq(5000,1)
self.Bind(wx.EVT_SLIDER, self.sliderUpdate) self.NRJText = wx.StaticText(self, 105, “8.03 keV”, wx.Point(250, 15))
Bases: wx._windows.Dialog
# top sizer self.pan=wx.Panel(self, wx.ID_ANY) panel = self.pan vbox_top = wx.BoxSizer(wx.VERTICAL) #Parameters sizer sizer=wx.FlexGridSizer(rows=4,cols=2,hgap=20,vgap=5) #text , numerical value, slider
wx python dialog box for calculation of invariant
wx python dialog box for calculation of invariant
project : pySAXS description : wxPython Class to plot some data files to gnuplot authors : Antoine Thill, Olivier Spalla, Olivier Tache’, Debasis Sen Last changes :
16-03-2007 OT : add autoscale buttons, send replot command directly to gnuplot
Bases: wx._windows.Frame
A matplotlib canvas embedded in a wxPython top-level window.
@cvar ABOUT_TITLE: Title of the “About” dialog. @cvar ABOUT_MESSAGE: Contents of the “About” dialog.
datas to the plot x and y are datas label : the name of datas id : no of datas in a list -> give the colors
return a color name from the list of colors if n> length of list of colors, return at the beginning
Return an infinite, cycling iterator over the available marker symbols. or a fixed marker symbol
Enable or disable automatic view rescaling when the user zooms out to the initial figure.
Enable or disable drawing crosshairs through the mouse cursor when it is inside a matplotlib axes.
Enable or disable the changing mouse cursor. When enabled, the cursor changes from the normal arrow to a square cross when the mouse enters a matplotlib axes on this canvas.
Enable or disable the display of the matplotlib axes coordinates of the mouse in the lower left corner of the canvas.
return the RGB list of colors with luminance <=0.4
project : pySAXS description : function to print a message from a txt file to a dialog box authors : Olivier Tache Last changes :
24-07-2012 OT 13-03-2007 OT
Embedding matplotlib in wxPython applications is straightforward, but the default plotting widget lacks the capabilities necessary for interactive use. WxMpl (wxPython+matplotlib) is a library of components that provide these missing features in the form of a better matplolib FigureCanvas.
Bases: matplotlib.backends.backend_wxagg.FigureCanvasWxAgg
A matplotlib canvas suitable for embedding in wxPython applications.
Overrides the wxPython backround repainting event to reduce flicker.
Called by the associated C{PlotPanelDirector} to emit a C{PointEvent}.
Called by the associated C{PlotPanelDirector} to emit a C{SelectionEvent}.
Enable or disable automatic view rescaling when the user zooms out to the initial figure.
Enable or disable drawing crosshairs through the mouse cursor when it is inside a matplotlib axes.
Enable or disable the changing mouse cursor. When enabled, the cursor changes from the normal arrow to a square cross when the mouse enters a matplotlib axes on this canvas.
Enable or disable the display of the matplotlib axes coordinates of the mouse in the lower left corner of the canvas.
Enable or disable area selections, where user selects a rectangular area of the canvas by left-clicking and dragging the mouse.
Bases: wx._windows.Frame
A matplotlib canvas embedded in a wxPython top-level window.
@cvar ABOUT_TITLE: Title of the “About” dialog. @cvar ABOUT_MESSAGE: Contents of the “About” dialog.
Enable or disable automatic view rescaling when the user zooms out to the initial figure.
Enable or disable drawing crosshairs through the mouse cursor when it is inside a matplotlib axes.
Enable or disable the changing mouse cursor. When enabled, the cursor changes from the normal arrow to a square cross when the mouse enters a matplotlib axes on this canvas.
Enable or disable the display of the matplotlib axes coordinates of the mouse in the lower left corner of the canvas.
Bases: wx._core.App
A wxApp that provides a matplotlib canvas embedded in a wxPython top-level window, encapsulating wxPython’s nuts and bolts.
@cvar ABOUT_TITLE: Title of the “About” dialog. @cvar ABOUT_MESSAGE: Contents of the “About” dialog.
Enable or disable drawing crosshairs through the mouse cursor when it is inside a matplotlib axes.
Enable or disable the changing mouse cursor. When enabled, the cursor changes from the normal arrow to a square cross when the mouse enters a matplotlib axes on this canvas.
Enable or disable the display of the matplotlib axes coordinates of the mouse in the lower left corner of the canvas.
Plots and updates lines on a matplotlib C{Axes}.
Provides data for a C{StripCharter} to plot. Subclasses of C{Channel} override the template methods C{getX()} and C{getY()} to provide plot data and call C{setChanged(True)} when that data has changed.
Returns the line color string to use when the line is plotted, or C{None} to use an automatically generated color.
Returns the line marker string to use when the line is plotted, or C{None} to use the default line marker.
Returns the line style string to use when the line is plotted, or C{None} to use the default line style.
Template method that returns the vector of X axis data or C{None} if there is no data available.
Provides a simplified interface to the wxPython printing framework that’s designed for printing matplotlib figures.
Open a “Print Preview” window for the matplotlib chart C{figure}. The keyword argument C{title} provides the printing framework with a title for the print job.
Bases: wx._core.PyCommandEvent
wxPython event emitted when a left-click-release occurs in a matplotlib axes of a window without an area selection.
@cvar axes: matplotlib C{Axes} which was left-clicked @cvar x: matplotlib X coordinate @cvar y: matplotlib Y coordinate @cvar xdata: axes X coordinate @cvar ydata: axes Y coordinate
Register to receive wxPython C{PointEvent}s from a C{PlotPanel} or C{PlotFrame}.
Bases: wx._core.PyCommandEvent
wxPython event emitted when an area selection occurs in a matplotlib axes of a window for which zooming has been disabled. The selection is described by a rectangle from C{(x1, y1)} to C{(x2, y2)}, of which only one point is required to be inside the axes.
@cvar axes: matplotlib C{Axes} which was left-clicked @cvar x1: matplotlib x1 coordinate @cvar y1: matplotlib y1 coordinate @cvar x2: matplotlib x2 coordinate @cvar y2: matplotlib y2 coordinate @cvar x1data: axes x1 coordinate @cvar y1data: axes y1 coordinate @cvar x2data: axes x2 coordinate @cvar y2data: axes y2 coordinate