Hi,
On 12/07/14 14:41, erenay dayanik wrote:
> I forgot the mention what I'm trying to achive,
>
> As I said before, I have 20000 entry, I need to show all of them in the graph, and because of this, I'm trying to get the biggest page (biggest width) that I can. By the way in manuel, size of page is generally explained with points.However I did not understand the points well, For example if my page 10000* 3000 points, does it mean the chart can have 10000 different x values at maximum ?
>
--> see my first reply for an explanation what "points" are in DISLIN, i.e. they are 0.1mm.
For a chart, having an X-axis of 10000 points simply gives you a kind of resolution of the plot display. Usually displaying a data point requires a symbol which is larger than 1 point (e.g. hsymbl(20)). You can still plot as many different x-values as you like but they will not be distinguishable in the plot. But there is another problem with the scaling to your physical display pixels. DISLIN may use 10000 points for its x-axis, but if this is mapped to only 1000 pixels of your monitor screen because of the size of your graphics window, you still can only distinguish maximum 1000 x-values (if each symbol occupies just a single pixel of your screen).
In summary, a "point" is just a logical unit of DISLIN, but does not necessarily tell you the true resolution of a plot.
Cheers,
Armin
> On Saturday, July 12, 2014 4:55:45 PM UTC+3, erenay dayanik wrote:
>
> Hi Armin and the others,
>
> Thanks for suggestion, I've did it as you said. After that I was checking whether it is true or not and I've faced with a problem.
>
> Now, here is my code related with this issue.
>
> graphics.getscr(&widthScreen, &heightScreen);
> graphics.swgtit(title.c_str());
> graphics.swghlp(help_text.c_str());
> graphics.swgwth(-40);
> graphics.swgwin(0, 0, widthScreen, (3 * heightScreen) / 4); // ana Container width/size'ini set et
> id_MainGUI = graphics.wgini("form");
> graphics.swgwin(0, 0, widthScreen / 4, (3*heightScreen)/4); // settings Container'i width/size'ini set et
> id_settings = graphics.wgbas(id_MainGUI, "form");
> graphics.swgwin(widthScreen / 10, 0, (3 * widthScreen) / 4, (5 * heightScreen) / 8); // grafik output'u width/size'ini set et
> graphics.swgtyp("scroll", "draw");
> id_graphicOutput=graphics.wgbas(id_MainGUI,"form");
>
> id_drawWidget = graphics.wgdraw(id_graphicOutput);
> started = graphics.wgpbut(id_settings, startProgram.c_str());
> graphics.metafl("CONS");
>
> graphics.x11mod("nostore");
> */graphics.setxid(id_drawWidget, "WIDGET"); // external X window defined /*
> */
graphics.page(20000000, 2100000);/*
> graphics.disini();
> *graphics.pagfll(255);*
>
>
> Now, I've tough the first parameter of page routine defines width of my page and the second one defines height of it. When I've run my program with the above code the output is like :
http://prntscr.com/41xfvc
>
> Scrool right/left is running well no problem. But when I've changed */
graphics.page(20000000, 2100000); to /*/*
graphics.page(200000, */*/2100000/*/*); I mean giving smaller first parameter to that routine, *I got the following output :
http://prntscr.com/41xjwb/
> /
> /
> /The height of my page area is increased . Does it mean I did someting wrong ?/
> /
> /
> / My second question is that what is the unit of page() routine's parameters? pixel or centimeter ? or someting else ?/
> /
> /
> /Thanks in advance./
> /
> /
>
> On Friday, July 11, 2014 2:30:12 PM UTC+3, Armin Rauthe-Schöch wrote:
>
> Hi,
>
> have a look at:
>
http://www.mps.mpg.de/1758995/gallery_widgets2#goeke_3 <
http://www.mps.mpg.de/1758995/gallery_widgets2#goeke_3>
> It shows a draw area/widget with scroll bars.
>
> The routine is probably:
>
http://www2.mps.mpg.de/dislin/kap15.html#SWGTYP <
http://www2.mps.mpg.de/dislin/kap15.html#SWGTYP>
>
> swgtyp("SCROLL", "DRAW");
>
>
> I would then define axis length of the plot which are larger than the available space and see whether you are able to use the scroll bars to access the whole plot. Maybe you have also to change the size of the plot area with one of these routines
> WINSIZ
> PAGE
> SWGDRW
>
>
> Good luck!
> Armin
>
>
>
>
>
> On 07/11/2014 10:24 AM, erenay dayanik wrote:
> > Hi Armin,
> >
> > I'm really so greatful for your helps, It solved my problem.
> >
> > I have one more thing, the data that I have visualize in the chart is really huge which is not fit the screen, (like 3000 item I have to show in the chart). Can X window have a scroll right/left widget or something like that ?
> >
> > On Friday, July 11, 2014 11:35:13 AM UTC+3, Armin Rauthe-Schöch wrote:
> >
> > Hi,
> >
> > did you try ?
> >
> > swgtyp("NORESIZE", "MAIN");
> >
> >
http://www2.mps.mpg.de/dislin/kap15.html#SWGTYP <
http://www2.mps.mpg.de/dislin/kap15.html#SWGTYP> <
http://www2.mps.mpg.de/dislin/kap15.html#SWGTYP <
http://www2.mps.mpg.de/dislin/kap15.html#SWGTYP>>
> >
> > The manual says that the default is
> > swgtyp("RESIZE", "MAIN");
> > so I figured that "NORESIZE" should solve your problem.
> >
> >
> > Cheers,
> > Armin
> >
> >
> >
> > On 07/11/2014 08:16 AM, erenay dayanik wrote:
> > > Hi again,
> > >
> > > Thanks for suggestion, however;I couldnt find any relationship between my question and SWGTYP routine. Am I missing something ?
> > >
> > > On Friday, July 11, 2014 10:41:36 AM UTC+3, Armin Rauthe-Schöch wrote:
> > >
> > > Hi
> > >
> > > have a look at the "SWGTYP" function.
> > >
> > >
> > > Good luck!
> > > Armin
> > >
> > >
> > > On 07/11/2014 07:35 AM, erenay dayanik wrote:
> > > > Hi everyone, specially Hermut and Armin;
> > > >
> > > > I would like to know that is there a way to disable resizing the X11 windows. To do that, I've looked at te Appendix B at the end of manuel however,I could not find it.
> > > >
> > > > I want it because, when I try to change the size of x11 window during program execution, ( like maximize) the chart on the windows disappear.
> > > >
> > > > Thanks in advance.
> > > >
> > > > Yours
> > > >
> > > > --
> > > > You received this message because you are subscribed to the Google Groups "dislin-users" group.
> > > > To unsubscribe from this group and stop receiving emails from it, send an email to
dislin-users...@googlegroups.com <javascript:> <mailto:
dislin-users...@googlegroups.com <javascript:> <javascript:>>.
> > > > For more options, visit
https://groups.google.com/d/optout <
https://groups.google.com/d/optout> <
https://groups.google.com/d/optout <
https://groups.google.com/d/optout>> <
https://groups.google.com/d/optout <
https://groups.google.com/d/optout> <
https://groups.google.com/d/optout <
https://groups.google.com/d/optout>>>.
> > >
> > > --
> > > Dr. Armin Rauthe-Schöch
> > > Max Planck Institute for Chemistry
> > > Department of Atmospheric Chemistry
> > > Hahn-Meitner-Weg 1
> > > D-55128 Mainz / GERMANY
> > > Tel.
+49-6131-305-4123
> > > Fax.
+49-6131-305-4009
> > > Email:
armin.raut...@mpic.de <javascript:>
> > >
> > > --
> > > You received this message because you are subscribed to the Google Groups "dislin-users" group.
> > > To unsubscribe from this group and stop receiving emails from it, send an email to
dislin-users...@googlegroups.com <javascript:> <mailto:
dislin-users...@googlegroups.com <javascript:>>.
> --
> You received this message because you are subscribed to the Google Groups "dislin-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
dislin-users...@googlegroups.com <mailto:
dislin-users...@googlegroups.com>.
> For more options, visit
https://groups.google.com/d/optout.