Thank you, Jeremy, that was helpful.

It was important for me that someone who knows Veusz can tell 'Yes, you can
do that in Veusz', extra code or no extra code. I just didn't want to
invest large amounts of time only to find out that it there is some kind of
a wall in the middle of a journey. Veusz it is then.


On Thu, Nov 28, 2013 at 8:32 PM, Jeremy Sanders <jer...@jeremysanders.net>wrote:

> Hi Predrag
>
> Thanks for your email.
>
>
> On 27/11/13 19:11, Predrag Mijatovic wrote:
>
>  For x axis there need to be a grid line every 10 minutes, with a dashed
>> line on every half hour.
>>
>
> Veusz has a setting to say how many grid points to have (or to try to
> have). There isn't a setting to say I want a grid point every X minutes.
> You would have to manually add the points you want to the axis, if you want
> this.
>
>
>  And now the fun part: there is a sql database with route number, time
>> needed between two locations etc. What I need is to make a graph out of
>> that database, but also, if I edit graph in Veusz, to export it back to
>> database.
>>
>
> This might be difficult. I don't know whether you're planning to write
> code to join veusz with your database or whether you want a preexisting
> solution. If you want to plot database data, you need to write a python
> script to put the data into the veusz module (where it can be saved to the
> GUI), or you should write an import plugin to to return data from the
> database, which could be used by the GUI.
>
> However, putting the data back in the database after it has been edited
> would be difficult. Veusz doesn't support exporting data in the GUI, though
> you could load the document in a python script and write the data back to
> the database.
>
> Another alternative is to write a Tools Plugin, which could export the
> data back from veusz. Tools plugins can basically do anything with the plot
> structure and communicate with external programs. Plugins aren't that hard
> to write if you're familiar with python.
>
>
>  My question here is would you use Veusz for a task like this? Should I
>> commit myself to learn Veusz, is it the right tool for this kind of a
>> job? If yes, can you outline a general approach - how would you do it?
>> If not, do you have a suggestion for some other software?
>>
>
> It might be suitable - you could make a plot which looks like the one
> given - but the database interaction would require you to write code. You'd
> have to write code to construct the plot, too, as different routes would
> require different plot widgets. The positioning of labels might not be
> intelligent enough for what you require, unless you work this out for
> yourself. I don't know whether any other software is flexible enough. Veusz
> has the advantage of a unified scripting module and GUI with plugins.
>
> Jeremy
>
>
>
>
_______________________________________________
Veusz-discuss mailing list
Veusz-discuss@gna.org
https://mail.gna.org/listinfo/veusz-discuss

Répondre à