473,408 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

plotting and diagramming library

Hello All,

I am creating a visual programming environment for python (similar to
Matlab's simulink, but for python). For several reasons I have
decided not to go with OGL. I am writing a wxOGL replacement library
for wxPython.

My first thought was to create an exact drop in replacement for OGL,
but the more I look at the OGL api the more I hesitate to do it.

The current library/test application is here (need python2.3 and
wxPython):
http://home.bellsouth.net/p/PWP-dande

Please try it out and look at the code. You can connect pieces, zoom,
tab to different shapes, add shapes to container blocks, and add code
to code blocks.

Eventually I would like this library to be used for complex diagrams
as well as plotting. This means the library will have primitive
shapes (no resize, no selection ...). It will also have complex
shapes (resize, intelligent connections, selections). OGL does not
really have this distinction.

While working on this library I also noticed that it would be possible
to make this library work with pygame.

Here are my questions:
1) Should I model my api on OGL or the Tk::Canvas (I think it's
Canvas).

2) Should I make it an exclusively wxPython library or should I put
the time in now to make it work with wxPython and the pygame library?
Are there other graphics libraries it should work with?

3) Would there be any interest if it could load and save in SVG
format?

4) Should I go the OGL route and make the base class "Shape" fairly
heavyweight like OGL, or should I make it lightweight (like I want).
Lightweight means that the primitive shapes will hold their x,y data
and know how to draw themselves and that's about it. Lightweight
shapes would be great for plotting. On the other hand there has to be
a reason why OGL and Tk give their basic shapes so much functionality.

5) wxDiagram is basically a list. I want my "Diagram" to take
advantage of that fact and either have it inherit from list or
delegate list-methods to its main list member. After all, this is
python, and it would be cool to be able to
insert,pop,append,extend,...,and iterate over a wxDiagram. My problem
is wxPython/wxOGL api already has some naming conventions that don't
look like the python list functions. Which one of these choices do
you like
a) Only implement the python list functions (or inherit from list,
decorate when necessary)
b) Only implement the wxDiagram api. (python list functionality
lost)
c) Implement both. (this kind of violates python's "one way to do
it")
Any one out there using (or wants to use) python for plotting or
diagramming? I would like to hear from you.

Thanks,
Erik Lechak
pr*****@netzero.net
Jul 18 '05 #1
3 5028
Erik Lechak wrote:
Hello All,

I am creating a visual programming environment for python (similar to
Matlab's simulink, but for python). For several reasons I have


You might want to look at Viper
http://www.scripps.edu/~sanner/python/index.html

It's an extremely impressive, full-blown graphical programming environment for
python. It offers 'visual' programming, but all objects are always editable
as pure code, so it doesn't seem to hinder 'real' programming as many visual
environments seem to do.

Cheers,

f
Jul 18 '05 #2
I downloaded OGLlike.py and its concept is what I have in my mind too.
I was also looking at other framework wxArt2d (no Python interface
yet). It does a lot of things which you like to do. May be working on
python interface to this is a good start too.

Fernando Perez <fp*******@yahoo.com> wrote in message news:<bn**********@peabody.colorado.edu>...
Erik Lechak wrote:
Hello All,

I am creating a visual programming environment for python (similar to
Matlab's simulink, but for python). For several reasons I have


You might want to look at Viper
http://www.scripps.edu/~sanner/python/index.html

It's an extremely impressive, full-blown graphical programming environment for
python. It offers 'visual' programming, but all objects are always editable
as pure code, so it doesn't seem to hinder 'real' programming as many visual
environments seem to do.

Cheers,

f

Jul 18 '05 #3
pr*****@netzero.net (Erik Lechak) wrote in message news:<1f**************************@posting.google. com>...
The current library/test application is here (need python2.3 and
wxPython):
http://home.bellsouth.net/p/PWP-dande


Thank you so much for doing it. I think this thread deserves more
attention from other people. It's a very important tool set.

Hung Jung
Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Rolf Wester | last post by:
Hi, I have a Python console application that is intended to be used interactively and I have to add plotting capabilities (multiple XY plots and if possible 2D-surface plots). I'm loocking for a...
5
by: michael.s.gilbert | last post by:
hello all, this message is geared toward those of you in the scientific community. i'm looking for a python plotting library that can support rendering greek symbols and other various characters...
8
by: Freddy | last post by:
Hi guys, I have a quick question, I have a program that generates numerical output (as most of the programs), the program is written in C language, and currently I use the "DOS interface to...
0
by: kellyonlyone | last post by:
E-XD++ MFC Library Enterprise Edition V9.80 is released (100% Source Code)! ("The only Flow/Diagramming Kits that provides full source code of components for MFC and ActiveX in a single package!")...
0
by: NiTiN | last post by:
Hi! I'm looking for a diagramming library to create something similar to SSMS Database Diagrams. Does anyone have any suggestions? The closest I could find was Nevron Diagram for .NET. -N
0
by: kellyonlyone | last post by:
E-XD++ MFC Library Enterprise Edition V11.0 is released (100% MFC/C++ Source Code)! ("The only Flow/Diagramming Kits that provides full source code of components for MFC and ActiveX in a single...
1
by: T. Crane | last post by:
Hi, I am looking for a good plotting library. I intend to do 3D surface plots, 2D contour, 3D waterfall, etc. Right now I have access to National Instruments' Measurement Studio, and it's...
18
by: Giovanni Dicanio | last post by:
Hi, do you know any good and free 2D and 3D plotting libraries for .NET ? I need them for a project (which is starting as an "experiment", and is no commercial, at least at this first step, so...
0
by: Helmut Michels | last post by:
Dear C/C++ programmers, I am pleased to announce version 9.4 of the data plotting software DISLIN. DISLIN is a high-level and easy to use plotting library for displaying data as curves, bar...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.