Username Remember Me?
Password   forgot password?
   
   
Inverted axis , title, and x-ylabel using sdscatter
Posted: 24 October 2010 09:24 PM   [ Ignore ]  
Novice
Rank
Total Posts:  4
Joined  2010-10-23

Hello,

as you can see at both attached images,
while i was trying to check the
sdscatter(ts,p)
sdscatter(ts,pd2)
according to “Chapter 3: Getting Started”
i received inverted plots..
This also happened during executing the example .m files…

If someone knows a way to fix this please reply…

Thanks..

Image Attachments
image_1.pngimage_2.png
Profile
 
 
Posted: 25 October 2010 05:50 AM   [ Ignore ]   [ # 1 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  360
Joined  2008-04-26

Dear dim,

thanks for your feedback. I never saw this issue before.
Does the same mirroring/flipping effect happen when you run sdscatter(ts) or sdfeatplot(ts)?

Which Matlab release do you use? Do you use 32-bit or 64-bit Windows? To send us this info, just type prsd_feedback - it opens a dialog and fills in the platform info

Thanks.

Pavel

Profile
 
 
Posted: 25 October 2010 06:24 PM   [ Ignore ]   [ # 2 ]  
Novice
Rank
Total Posts:  4
Joined  2010-10-23

Hello again,

when i type sdscatter(ts,p*r,’roc’,r) i get the next two first figures
were the second is inversed..
sdscatter(ts) (and sdfeatplot(ts)) on its own is working properly,

This was tested in Matlab 2009b, under 32-bit Windows .

Any idea?

Profile
 
 
Posted: 11 January 2011 07:11 PM   [ Ignore ]   [ # 3 ]  
Novice
Rank
Total Posts:  1
Joined  2011-01-11

Dear Pavel,

I am also experiencing this problem.
I am using Matlab 7.9.0.527 (R2009b) 64-bit (win64).
Can I safely assume it is becasue of our version of Matlab?

To add: When you save the image (jpg), the labels are correct.

Also, when using the arrows to cycle through classes, once in both axis the class is the same, the arrows become unresponsive and sdscatter has to be run again. I mention this here because I think this might be connected.

Thanks,
Tristan

Profile
 
 
Posted: 12 January 2011 10:28 AM   [ Ignore ]   [ # 4 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  360
Joined  2008-04-26

Dear Tristan and dim,

so far, we were not able to repeat this issue. On Matlab 7.9 win64 (Windows 7), sdscatter decision backdrop works fine - see the screenshot below. Do you use any extra settings in your Windows/Matlab regarding fonts, video acceleration?

Thank you for your feedback!

With Kind Regards,

Pavel

Image Attachments
Picture 5.png
Profile
 
 
Posted: 11 August 2011 04:00 PM   [ Ignore ]   [ # 5 ]  
Novice
Rank
Total Posts:  15
Joined  2011-08-11

Apparently this bug has not been resolved yet as I am getting the same error or is there a workaround?

I am using (sdfeedback)
Matlab 7.11.0.584 (R2010b) (platform PCWIN64)
perClass: 3.0.0 (18-Jun-2011) (13)

To my knowledge, I haven’t modified any fonts/rendering options in MATLAB.

The system I am using is a Core2 Duo with an ATI Mobility FireGl V5700 (catalyst driver 3.0.736.0) with OpenGL enabled.

 Signature 

Kind regards,

Nils

Profile
 
 
Posted: 11 August 2011 05:02 PM   [ Ignore ]   [ # 6 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  360
Joined  2008-04-26

Dear nilsb,

so far, we were unable to repeat the font flipping on our side.  But we came across this discussion:
http://www.mathworks.com/matlabcentral/newsreader/view_thread/163805

It suggests that the flipping may be related to buggy handling of alphadata in some drivers. 

To test if you’re observing the same issue, I patched the sdscatter code - please copy the attached file sdscatter.p to your perclass directory. When you open a new sdscatter with backdrop (using sdscatter(a,trained_pipeline) ), you should see much more vivid colors of the backdrop because no alpha is used. Does it affect the font flipping?

Thanks for your help with this issue!

Pavel

File Attachments
sdscatter.p  (File Size: 3KB - Downloads: 356)
Profile
 
 
Posted: 11 August 2011 06:58 PM   [ Ignore ]   [ # 7 ]  
Novice
Rank
Total Posts:  15
Joined  2011-08-11

Hello Pavel,

thanks for the quick reply.
This indeed fixed the problem of inverted fonts. I can live with vivid colors but better discernible titles ;-)
Aaaah, these ATI drivers, I thought they were only bad on Linux machines…
I ‘ll see if a newer driver version will help.

 Signature 

Kind regards,

Nils

Profile
 
 
Posted: 11 August 2011 07:01 PM   [ Ignore ]   [ # 8 ]  
Novice
Rank
Total Posts:  15
Joined  2011-08-11

Hello,

just for your information, the display now flickers with the patched version when I move the cursor, but I guess you cannot have it all ;-)

 Signature 

Kind regards,

Nils

Profile
 
 
Posted: 12 August 2011 08:46 AM   [ Ignore ]   [ # 9 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  360
Joined  2008-04-26

Dear nilsb,

good to hear the fonts are fine. Strange it flickers - could you maybe check which matlab renderer do you use in that figure? When the sdscatter is open, type:

>> get(gcf,'renderer')

If you now use the ‘opengl’ renderer, could you maybe try to set the ‘painters’ renderer and if the flicker persists, also switch on the ‘doublebuffer’:

>> set(gcf,'renderer','painters')
>> 
set(gcf,'doublebuffer','on')

One more tip: You may set custom colormap which could a bit easy the pain of too vivid colors:

>> sdscatter(a,p)
>> 
colormap gray

Maybe a custom colormap going from white to gray could be more pleasant:

>> t=linspace(0.5,1,64);
>> 
m=repmat(t',1,3);
>> colormap(m)

Hope it helps,

Pavel

Profile
 
 
Posted: 12 August 2011 09:09 AM   [ Ignore ]   [ # 10 ]  
Novice
Rank
Total Posts:  15
Joined  2011-08-11

Hello Pavel,

I was using the painter renderer. Turning double buffering on eliminated the flicker.
Thanks.

 Signature 

Kind regards,

Nils

Profile
 
 
Posted: 12 August 2011 09:15 AM   [ Ignore ]   [ # 11 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  360
Joined  2008-04-26

Dear nilsb,

good to hear the flicker went away! I’ve prepare a fix that would allow you to switch the alpha on and off in an existing scatter. In this way, you may decide if you like to see the nice background color and maybe save the image for external use (another user above mentioned that saved images do not have flipped fonts).

The fix allows you to disable alpha by pressing the A key (capital A). The double buffer gets also switched on to avoid the flicker.

Just copy the two files to your perclass directory. The sdscatter.p only returns sdscatter to the state in the public release.

Could you, please, test if pressing A in the newly opened scatter plot corrects the font flipping?

Thank you for your help!

With Kind Regards,

Pavel

File Attachments
sdscatter.p  (File Size: 3KB - Downloads: 385)
sdscatter_backdrop_update.p  (File Size: 3KB - Downloads: 350)
Profile
 
 
Posted: 12 August 2011 09:30 AM   [ Ignore ]   [ # 12 ]  
Novice
Rank
Total Posts:  15
Joined  2011-08-11

Hello Pavel,

I copied your files.
Pressing A gives the following error:

??? Undefined function or variable ‘sh’.

Error in ==> C:\Users\wanbu\Documents\MATLAB\toolbox\perclass\perclass\sdscatter_backdrop_update.p>sdscatter_backdrop_update at 203

??? Error while evaluating figure KeyPressFcn

As a consequence double buffering is off.

BTW: Is it correct behaviour that the Scatter menu appears only if sdscatter is called without additional arguments?

sdscatter(a)

Sorry to keep you occupied with this.

 Signature 

Kind regards,

Nils

Profile
 
 
Posted: 12 August 2011 09:38 AM   [ Ignore ]   [ # 13 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  360
Joined  2008-04-26

Dear nilsb,

sorry, the error is a problem on our side. Please use the attached fix.

Yes, sdscatter with backdrop of soft outputs or classifier decisions does not provide the extra functionality through the Scatter menu.

Does the fix help?

With Kind Regards,

Pavel

File Attachments
sdscatter_backdrop_update.p  (File Size: 3KB - Downloads: 351)
Profile
 
 
Posted: 12 August 2011 01:28 PM   [ Ignore ]   [ # 14 ]  
Novice
Rank
Total Posts:  15
Joined  2011-08-11

Hello,

yes, the new version fixes the problem; shift-a works for toggling between alpha on and off.
Thanks.

 Signature 

Kind regards,

Nils

Profile
 
 
Posted: 12 August 2011 01:32 PM   [ Ignore ]   [ # 15 ]  
Administrator
Avatar
RankRankRankRank
Total Posts:  360
Joined  2008-04-26

Great to hear that. Thank you for your feedback,

Pavel

Profile