Picon
Gravatar

how to attach QwtPlotMarker to Y2?

hello, according to http://qwt.sourceforge.net/class_qwt_plot_marker.html
I can only attach marker to x1, y1,
but I want to attach it to y2(YRight),
how can I do it?

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
Uwe Rathmann | 4 Jan 2011 08:21
Picon

Re: how to attach QwtPlotMarker to Y2?

> I can only attach marker to x1, y1
> but I want to attach it to y2(YRight),
> how can I do it?

marker->setYAxis(QwtPlot::yRight);

Uwe

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
Picon
Gravatar

Re: how to attach QwtPlotMarker to Y2?

OH, I ask a silly question..
thanks!

On Tue, Jan 4, 2011 at 3:21 PM, Uwe Rathmann <Uwe.Rathmann <at> tigertal.de> wrote:
> marker->setYAxis(QwtPlot::yRight);
>

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
Kuo Pico | 4 Jan 2011 15:10
Picon

Could anyone teach me how to use QWT to have a specific draw?

Hi, All:
   I would like to have a line-chart with special requirement like what listed below.

   1. for some data, I would like to show different color for them
   2. for some data, I would like to brush the area between its y-value and baseline
   3. for a line-chart, I would like to have bar below the line

   Are these requirement possible to achieve by QWT?

   Thanks for your help.

   BR,
   Pico

--
Pico Kuo,
Engineer
Taiwan

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
qwt-interest mailing list
qwt-interest <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qwt-interest
Picon
Gravatar

how to use qwtplotzoomer to zoom only 1 axis?

hello, I want use zoomer to zoom only XBottom axis, and leave Y alone,
any idea how to do this?
if there is no easy way, I should try qwtplotpicker..

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
Picon
Gravatar

Re: how to use qwtplotzoomer to zoom only 1 axis?

to be detailed, I use both Y axis, and I do not want zoomer to change
any of them.

2011/1/5 机械唯物主义 : linjunhalida <linjunhalida <at> gmail.com>:
> hello, I want use zoomer to zoom only XBottom axis, and leave Y alone,
> any idea how to do this?
> if there is no easy way, I should try qwtplotpicker..
>

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
qwt-interest mailing list
qwt-interest <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qwt-interest
David Stranz | 5 Jan 2011 03:00

Re: how to use qwtplotzoomer to zoom only 1 axis?

Derive a class from QwtPlotZoomer and reimplement the zoom( const 
QwtDoubleRect & ) slot.  Change it so that the y coordinates of the top 
left and bottom right points are equal to the y points of the zoomBase() 
rect, then call QwtPlotZoomer::zoom() with the new rect.

void MyQwtPlotZoomer::zoom( const QwtDoubleRect & rect )
{
    QwtDoubleRect newRect;
    const QwtDoubleRect & baseRect = zoomBase();
    newRect.setCoords( rect.left(), baseRect.top(), rect.right(), 
baseRect.bottom();
    QwtPlotZoomer::zoom( newRect );
}

_______________________________________________________________
David Stranz, Ph.D.	david_stranz <at> MassSpec.com

Sierra Analytics, Inc.
5815 Stoddard Road, Suite 601
Modesto, CA  95356

Tel: (209) 545-8508
http://www.massspec.com
_______________________________________________________________

On 1/4/2011 4:36 PM, 机械唯物主义 : linjunhalida wrote:
> to be detailed, I use both Y axis, and I do not want zoomer to change
> any of them.
>
> 2011/1/5 机械唯物主义 : linjunhalida<linjunhalida <at> gmail.com>:
>> hello, I want use zoomer to zoom only XBottom axis, and leave Y alone,
>> any idea how to do this?
>> if there is no easy way, I should try qwtplotpicker..
>>
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment, and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> qwt-interest mailing list
> qwt-interest <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qwt-interest

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
qwt-interest mailing list
qwt-interest <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qwt-interest
Hugirat Yihya | 5 Jan 2011 13:25
Picon

more than one Function in a curve

Hello all,
it is possible to construct  a curve interactively with the mouse, that 
curve should be built of deferent intervals every interval could be a 
deferent function ??

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
Picon
Gravatar

Re: how to use qwtplotzoomer to zoom only 1 axis?

Thanks! I create a pyqwt class for this job, maybe good for others:

class XZoomer(QwtPlotZoomer):
    """zoomer only works for X"""

    def zoom(self, rect):
        # there is another zoom function
        if type(rect) == int:
            return QwtPlotZoomer.zoom(self, rect)

        newRect = QRectF()
        baseRect = self.zoomBase()
        newRect.setCoords(rect.left(),
                          baseRect.top(),
                          rect.right(),
                          baseRect.bottom()
                          )
        return QwtPlotZoomer.zoom(self, newRect)

On Wed, Jan 5, 2011 at 10:00 AM, David Stranz <David_Stranz <at> massspec.com> wrote:
> void MyQwtPlotZoomer::zoom( const QwtDoubleRect & rect )
> {
>    QwtDoubleRect newRect;
>    const QwtDoubleRect & baseRect = zoomBase();
>    newRect.setCoords( rect.left(), baseRect.top(), rect.right(),
> baseRect.bottom();
>    QwtPlotZoomer::zoom( newRect );
> }
>

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
qwt-interest mailing list
qwt-interest <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qwt-interest
Uwe Rathmann | 14 Jan 2011 17:15
Picon

QwtPlot + style sheets

Hi,

I had a hard time trying to make QwtPlot running in an environment with style 
sheets. Unfortunately the implementation in Qt introduces a lot of heavy 
performance bottlenecks and it took me quite some time to study its code to 
work around them ( + a couple of bugs in Qwt in combination with style sheets 
).

I have changed the friedberg example in SVN trunk to demonstrate how style 
sheets could be used, but I checked it on Linux/X11 and Linux/Embedded only.

It would be great to have some feedback for other platforms and with other 
style sheets about the performance of the application. Please try the 
performance of moving the rubberband ( left mouse button on the canvas ).

Uwe

PS: attached is screen shot of what to expect

PS: One limitation is, that the calculation of the canvas clip needs a solid 
background. I'm working on finding a solution for others with gradients. 
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
qwt-interest mailing list
qwt-interest <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qwt-interest

Gmane