JCPLOT Homepage
Welcome to the JCPlot homepage.
The present version number is Beta 0.1.
In case you've come here directly and not through my man page, the
origional idea of doing this was to try and work out a scheme for
organising and writing a largish program using the Microsoft Foundation
Classes (MFC) but not using the Visual C++ AppWizard.
To see more details about this, including a template upon which this
program is based, go to the main page here.
Present State of JCPlot
With the release of the first Beta version (0.1) I'd consider JCPlot to
be an essentially useable, albeit limited program. It is now able to
load in data provided it is in an "x y" format with no delimiters,
modify the axes' properties and produce a hard copy.
The coding has been cleaned up so that it matches the method of writing
WinApps that is outlined on my WinApp HowTo
web page and as such is an example of how you might go about modifying
the Template program I have on there so as to suit your own needs.
What it does then is to implement a WinApp based upon a resisable and
scrolable Window containing a scalable and printable drawing area. This
is all done by 'hand' using a Smalltalk-like Model-View-Controller
paradigm in conjunction with the Microsoft Foundation Class (MFC).
Present Features of JCPlot
- General Program Features
- SDI Resisable Window with scalable and scollable viewing area.
- Contoller-Model-View (c.f. Microsoft Document-View) implementation.
- WYSIWYG hard copying.
- Specific Plotter Features
- Autoscaling and Ticking of axes.
- Dialog Box conrolled manual setting of axes scales, ticks, labels etc.
- Mouse contollable zooming.
- Data Import of ascii files in {x y} format.
Known Bugs
When you call Print, the default setting is always Portait mode,
whereas it needs to be in Landscape mode to match with the set up of
the axes.
What's Coming Soon
From now I'll be adding features whenever I get the time, probably
concentrating more on including a variety of Windows features than pure
functionality of the program, but it always was really more of a
programming exercise than anything else.
Download JCPlot
Click here to download ZIP of program and all of
the source code.
Version History
21/05/99 Version 0.1 - The first Beta version. This has been a
long time in coming but the result is an almost total rewrite. I did
this by stripping out all of the plotter-type features to leave the
bare WinApp, rewriting this completely to give the Template program,
and finally putting all the plotter features back in. The biggest
functional change is that it is now possible to obtain a hard copy.
16/10/98 Version 0.04 - Data can now be imported from ascii files
provided they are in a simple {x y} format with no delimiter (i.e.
comma) between them. Scaling has been changed to MM_ISOTROPIC from
MM_ANISOTROPIC for no particular reason.
4/10/98 Version 0.03 - Scaling has been switched to MM_ANISOTROPIC from
MM_TEXT so as to give a 1:1 matching of screen to printer. This required
as major rewrite since the Y axis changed from down positive to up
positive.
25/9/96 Version 0.02 - Code has been tidied up, including a few
comments put in.
14/9/98 Version 0.01 - Very rough early version got out in
a hurry as I had an urgent grant proposal to write.
Features included:
- SDI Resisable Window with scalable and scollable viewing area.
- Contoller-Model-View (c.f. Microsoft Document-View) implementation.
- Autoscaling and Ticking of axes.
- Dialog Box conrolled manual setting of axes scales, ticks, labels etc.
- Mouse contolled re-scalling.