Re: Problem with initialization of location of plot when using 2 monitors [message #72798] |
Tue, 05 October 2010 09:58 |
Jean[2]
Messages: 41 Registered: October 2010
|
Member |
|
|
On Oct 5, 11:07 am, David Fanning <n...@dfanning.com> wrote:
> Jean writes:
>> That's what I'm doing. I retrieve the xoffset and the xsize of the
>> main gui and set the location as being xoffset+xsize.
>> If xoffset is 20, and xsize is 200, the plot is displayed at 220
>> pixels from the left of the right screen when my main gui is on the
>> left screen !
>
> Ah, I misunderstood.
>
> I have a similar set-up. IDL on my right-hand screen and
> graphics windows displayed on the left-hand screen. When
> I do this:
>
> img = Image(Dist(200))
>
> The image appears over the top of my Workbench on the right-
> hand screen. However, if I do this:
>
> img = Image(Dist(200), Location=[50,100])
>
> The image appears on my left-hand screen, positioned in the
> correct location from the upper-left corner.
>
> I can put the image on my right hand screen by doing something
> like this:
>
> img = Image(Dist(200), Location=[1650,100])
>
> Is this not what you see?
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Unfortunately no. When I repeat your commands, everything shows up on
the right screen. I tried (for fun) to use a negative number in
location but without success. If I put my workbench on the left
screen, I still have the same problem (showing on the right screen).
I'm on mac and the top IDL menu is showing up on my right screen
(because it's my main screen). Maybe other people experienced the same
problem on their 2 displays (or more) ?
Jean
|
|
|
Re: Problem with initialization of location of plot when using 2 monitors [message #72801 is a reply to message #72798] |
Tue, 05 October 2010 08:07  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Jean writes:
> That's what I'm doing. I retrieve the xoffset and the xsize of the
> main gui and set the location as being xoffset+xsize.
> If xoffset is 20, and xsize is 200, the plot is displayed at 220
> pixels from the left of the right screen when my main gui is on the
> left screen !
Ah, I misunderstood.
I have a similar set-up. IDL on my right-hand screen and
graphics windows displayed on the left-hand screen. When
I do this:
img = Image(Dist(200))
The image appears over the top of my Workbench on the right-
hand screen. However, if I do this:
img = Image(Dist(200), Location=[50,100])
The image appears on my left-hand screen, positioned in the
correct location from the upper-left corner.
I can put the image on my right hand screen by doing something
like this:
img = Image(Dist(200), Location=[1650,100])
Is this not what you see?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: Problem with initialization of location of plot when using 2 monitors [message #72802 is a reply to message #72801] |
Tue, 05 October 2010 07:53  |
Jean[2]
Messages: 41 Registered: October 2010
|
Member |
|
|
On Oct 5, 10:27 am, David Fanning <n...@dfanning.com> wrote:
> Jean writes:
>> I'm using the new plot object/feature of IDL 8.0 and noticed a problem
>> when using 2 monitors. The IDL workbench is sitting on the right
>> display and the application I wrote starts on the left (because it's
>> really xoffset 0). Ok, well my application brings to life at some
>> point an object plot. I want this plot to show up just on the right of
>> my GUI. I retrieve the offset and xsize of that gui and pass it to the
>> location keywords of plot:
>
>> my_plot = plot([0,1], nodata=1, location=[xoff, yoff])
>
>> but the problem is that for my_plot, the offset 0 is on the left of
>> the right screen. How can I force it to be the real 0 offset.
>
> Shouldn't the offset of your plot be the offset of the GUI
> *plus* the xsize of the GUI?
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Hi David,
That's what I'm doing. I retrieve the xoffset and the xsize of the
main gui and set the location as being xoffset+xsize.
If xoffset is 20, and xsize is 200, the plot is displayed at 220
pixels from the left of the right screen when my main gui is on the
left screen !
|
|
|
Re: Problem with initialization of location of plot when using 2 monitors [message #72803 is a reply to message #72802] |
Tue, 05 October 2010 07:27  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Jean writes:
> I'm using the new plot object/feature of IDL 8.0 and noticed a problem
> when using 2 monitors. The IDL workbench is sitting on the right
> display and the application I wrote starts on the left (because it's
> really xoffset 0). Ok, well my application brings to life at some
> point an object plot. I want this plot to show up just on the right of
> my GUI. I retrieve the offset and xsize of that gui and pass it to the
> location keywords of plot:
>
> my_plot = plot([0,1], nodata=1, location=[xoff, yoff])
>
> but the problem is that for my_plot, the offset 0 is on the left of
> the right screen. How can I force it to be the real 0 offset.
Shouldn't the offset of your plot be the offset of the GUI
*plus* the xsize of the GUI?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|