FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bug found

 
Post new topic   Reply to topic     Forum Index -> Plot2Kill
View previous topic :: View next topic  
Author Message
theambient



Joined: 27 Mar 2010
Posts: 3

PostPosted: Tue Oct 04, 2011 3:47 am    Post subject: Bug found Reply with quote

Hi, it seems that i found bug.

if graph is constant than plot2kill displays nothing. as far as i understood this happens because of wrong scale. the lib just gets min and max, in case of const graph they match and we see empty plot with scale [a,a] on x line.

the code to reproduce the bug


Code:

void main()
{
   auto fig = Figure().xLabel("Movie").yLabel("# Watches").title("zipf: " ).gridIntensity(cast(ubyte)200);
   fig.addPlot( LineGraph(  [101,101] ).pointSymbol('o')
            .pointColor(getColor(255, 0, 0)) );
   fig.showAsMain();
}


P.S. consider to move project to bitbucket / github.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Plot2Kill All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group