Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

2D vector graphics, approach to take.

2 views
Skip to first unread message

crazyc...@hotmail.com

unread,
Oct 15, 2007, 6:50:05 AM10/15/07
to
Hi there

I currently have a Python program outputing to the command line,
durations of 'completed Steps' and 'data items' in relation to time
i.e.


--------------jfh
---------kl //kl started after jfh finished
% Ds //new data arrived at this point in time
-------pl (1) //Details error with finished Step
*kl // This step is now outputed but
//due to error with pl is
cancelled (no duration)

I am now going to represent this graphically i.e. boxes will be used
to show the progress of the different items in relation to time (as
the page will refresh after x seconds). Different colours, lines and
symbols will also be used to represent different things happening i.e.
the right hand side of a box still running will be dotted. Clicking on
different Steps will also load up a specific web page relating to it.

I came accross PHP/SWF as a PHP tool which should help allow me to do
this (the below link shows a perfect example of the type of output I
require)
http://www.maani.us/charts/index.php?menu=Gallery&submenu=Floating_Bar

But unfortunately it has to be bought to accomodate the functionality
of linking to other web pages when pointing to the graph (otherwise it
goes to the companies home site). I therefore wondered if anyone knows
of anything else out there which will be best suited to my needs.

Any other suggestions are also much appreciated i.e. whether you think
representing this as a graph like approach is the best option.

Cheers
Chris

crazyc...@hotmail.com

unread,
Oct 15, 2007, 9:24:53 AM10/15/07
to
Oh and I forgot to mention, in adition, the solution must support
firefox, netscape 4 and IE without the need to instal plugins etc.
This is one of the reasons why I was looking at some php solutions
because things such as svg and canvas's with JavaScript 'painted' in
are not supported by all the above browsers.

Any help would be much appreciated
regards
Chris

Sanders Kaufman

unread,
Oct 15, 2007, 9:37:14 AM10/15/07
to
<crazyc...@hotmail.com> wrote in message
news:1192445405.3...@v23g2000prn.googlegroups.com...

> I came accross PHP/SWF as a PHP tool which should help allow me to do
> this (the below link shows a perfect example of the type of output I
> require)
> http://www.maani.us/charts/index.php?menu=Gallery&submenu=Floating_Bar
>
> But unfortunately it has to be bought to accomodate the functionality
> of linking to other web pages when pointing to the graph (otherwise it
> goes to the companies home site). I therefore wondered if anyone knows
> of anything else out there which will be best suited to my needs.
>
> Any other suggestions are also much appreciated i.e. whether you think
> representing this as a graph like approach is the best option.

No - this is not a good approach because it relies on a non-web technology -
Shockwave Flash.
It wouldn't be so bad excpet for the fact, as you pointed out, that it
requires a third-party plug-in.

Better to use PHP's built-in image manipulation functions.


crazyc...@hotmail.com

unread,
Oct 15, 2007, 9:49:32 AM10/15/07
to
On Oct 15, 2:37 pm, "Sanders Kaufman" <bu...@kaufman.net> wrote:
> <crazychris...@hotmail.com> wrote in message
>
> news:1192445405.3...@v23g2000prn.googlegroups.com...

Thanks for the reply. I can't seem to access this link I'm afraid
though. I will endavour to look into PHP's built in image manipulation
functions. Could you also perhaps tell me a bit more about it? It
seems to be used to manipulate generated images however unfortunately
(i'm sorry i didn't mention this before) this is a bit too 'heavy' for
my needs. I would really prefer a 'light weight' complete web based
generated page without requiring any generated image which has to be
accessed.

Cheers
Chris

crazyc...@hotmail.com

unread,
Oct 15, 2007, 9:51:00 AM10/15/07
to
What do you think of the image_graph PHP pear library? Looks
promising.


Sanders Kaufman

unread,
Oct 15, 2007, 10:13:11 AM10/15/07
to
<crazyc...@hotmail.com> wrote in message
news:1192456260.7...@e9g2000prf.googlegroups.com...

> What do you think of the image_graph PHP pear library? Looks
> promising.

Toward what end?

It's cool and all - but it's just, yet another, freebie third-party utility.

Sanders Kaufman

unread,
Oct 15, 2007, 10:11:26 AM10/15/07
to
<crazyc...@hotmail.com> wrote in message
news:1192456172.7...@v29g2000prd.googlegroups.com...

Well - if you're looking for Light-Weight - Shockwave Flash is not a good
solution.
It's heavy like a bowling ball.
That's why some folks (like me) don't even install it.

As for the rest of that specification - What!?

It sounds like you've got a real good idea about what you do NOT want.
Now all you need is to define what you DO want.

crazyc...@hotmail.com

unread,
Oct 15, 2007, 11:15:43 AM10/15/07
to

> It sounds like you've got a real good idea about what you do NOT want.
> Now all you need is to define what you DO want.

hehe very true. Basically I would like:
-the page to be supported by all browsers without requiring any
additional plugins etc thus it seems java script and ajax used within
a canvas to p'paint' the graph or svg are not possible
-the page to be able to be quickly generated and scalable thus without
the need of writing and reading a image to update the page as it is
refreshed

This leads me to thinking using some php library which supports making
very specific tailor made graphs as the best option. I would have one
graph produced and refreshed which shows the current processing taking
place and a second graph showing the whole processesing that has took
part so far visible after scrolling diagonaly down-right

Your option of creating the image and then loading it into the browser
using image manipulation functions is possibly faesible but the
problem here is that (as mentioned before) I need to be able to click
on different Steps within the graph to load up different web pages,
thus loading a image would then require me to have some image
recognition which is probably making the task more complicated then
needed. Thanks for your help though Sanders, I am new to php so your
suggestions and thoughts are much appreciated.

Chris

The Natural Philosopher

unread,
Oct 16, 2007, 12:51:32 AM10/16/07
to
Like PHP and javascript eh?

If you want instant response to the user, you probably need javasSHIT;
that means downloading a SHITload of code into the browser.

and of course validating against the quirks of the browsers.

If you can stand resubmitting the whole page very time you want to
change something, php (Pretty Hopeless Parser) generating images and
poking them in specific areas is oK ish.

Your call
What you REALLY want is to write your own plugin...;-)

No 3rd party shit at all.

Rik Wasmus

unread,
Oct 16, 2007, 3:56:58 AM10/16/07
to

Everything written in Assembly... Hmmmmm. Be sure to code your own HTTP
server as well, who needs this bloated apache/omnihttp/iis/whatever shit :P
--
Rik Wasmus

The Natural Philosopher

unread,
Oct 16, 2007, 6:08:53 AM10/16/07
to

At least you knew where you were with Assembler. ;-)

I guess we have moved on, at least now we don't PAY for over-featured
underperforming bug ridden bloatware from manufacturers with their eye
on the profits and not the customer.

Unless you but a Mac of course...

Sanders Kaufman

unread,
Oct 16, 2007, 9:08:46 PM10/16/07
to

"Rik Wasmus" <luiheid...@hotmail.com> wrote in message
news:op.tz95o...@metallium.lan...

Yeah - he hit me with that one a while back, too.
Take's all kinds.


Rik Wasmus

unread,
Oct 17, 2007, 3:38:59 AM10/17/07
to
On Wed, 17 Oct 2007 03:08:46 +0200, Sanders Kaufman <bu...@kaufman.net>
wrote:

Just to keep thing in perspective: PHP is hardly quick and has a
reasonable large footprint. If speed, accuracy, and minimum traffic/load
times are that important in a project, one might indeed consider wether e
'web-interface' is what's needed. A simple dedicated application could be
what's best, or the twilight zone in between using java aplets for
instance.

Writing for the web/UA's has it's drawbacks and advantages one should
realise.
--
Rik Wasmus

0 new messages