Re: Drawing a line resulting a closed polygon
Marcus Badger <[email protected]> Mon, 23 Jun 2014 22:35:11 +0100
| Newsgroups | gmane.comp.gis.gmt.user |
|---|---|
| Message-ID | <[email protected]> |
> Another interesting thing is when I plot symbols like circles ( -Sc0.2), > all symbols will be plotted including the symbols outside the region. It > never happened on my old ubuntu and GMT. That's because you've included an -N flag in your psxy call. Marcus. On 23/06/14 18:08, [email protected] wrote: > Dear Joaquim, > > I have tried it. I have tried different > The main thing is that when the points are inside the region, it will > create a normal line but if the points are outside, it will create a > polygon. > Another interesting thing is when I plot symbols like circles ( -Sc0.2), > all symbols will be plotted including the symbols outside the region. It > never happened on my old ubuntu and GMT. > Thank you very much. > > Muksin > > ----- Reply message ----- > From: "Joaquim Luis" <[email protected]> > To: <[email protected]> > Subject: [GMT-HELP] Drawing a line resulting a closed polygon > Date: Mon, Jun 23, 2014 22:58 > > > Muskin > > Can you please try to remove the last line of the transform_xy file and > check that the problem still exists ... or not > > (please, check that you are posting to the list and not to me only) > > Joaquim > > >> Dear Joaquim, >> >> Please find the attached file. >> Thank you very much. >> >> Muksin >> >> >> On Mon, Jun 23, 2014 at 1:28 PM, Joaquim Luis <[email protected] >> <mailto:[email protected]>> wrote: >> >> Can you please send us the file "transform_xy" >> >> Joaquim >> >> >>> Dear Joaquim, >>> >>> I just installed a newest ubuntu and gmt. >>> Instead of creating a fault-line (one line) it creates a polygon >>> connecting the two edge points. >>> Sometimes, the points of the coastlines are connected so that I >>> got a weird line. >>> The script works well on my old laptop using old ubuntu and GMT >>> >>> >>> Muksin >>> >>> >>> On 22/06/2014 02:33, Joaquim Luis wrote: >>>> I still don't understand what is it that you find wrong with the >>>> line plotted with psxy but the coastlines issue look so much as >>>> this other user report >>>> >>>> http://gmt.soest.hawaii.edu/boards/1/topics/730 >>>> >>>> and that I could not reproduce. >>>> >>>>> Dear Paul, >>>>> >>>>> Here is my script: >>>>> >>>>> #!/bin/tcsh >>>>> >>>>> set psfile="Aceh2.ps" >>>>> >>>>> set la1=2 >>>>> set la2=5.5 >>>>> set lo1=96 >>>>> set lo2=100 >>>>> >>>>> rm $psfile >>>>> pscoast -R$lo1/$lo2/$la1/$la2 -Df -JM6i -S200 -G80 -K -B0.4NsWe >>>>> -W1/0 > $psfile >>>>> psxy -R -JM -m -N -P -O -K -W10/140 transform_xy >> $psfile >>>>> echo showpage >> $psfile >>>>> gv $psfile >>>>> >>>>> >>>>> I got the postscript file as attached. >>>>> Even the coastline also results in the closed polygon. >>>>> However, when I choose larger boundary region it will give a >>>>> correct fault line >>>>> >>>>> Regards, >>>>> Muksin >>>>> >>>>> >>>>> >>>>> On 21/06/2014 07:14, Paul Wessel wrote: >>>>>> The only way you would get a polygon with psxy is if you use >>>>>> -G<fill> or -L. So an example will be needed to see what you >>>>>> are doing. >>>>>> -p >>>>>> >>>>>> On Jun 20, 2014, at 6:35 PM, Joaquim Luis <[email protected] >>>>>> <mailto:[email protected]>> wrote: >>>>>> >>>>>>> >>>>>>>> I just installed a new version of GMT on ubuntu. >>>>>>> >>>>>>> Sorry, I can't resist but "New and Ubuntu" triggers and >>>>>>> infinite loop in my head >>>>>>> >>>>>>>> In case I have several line points outside the region, when >>>>>>>> I draw a line it gives me a closed polygon. >>>>>>>> Does anyone have the same experience? >>>>>>> >>>>>>> Please, post a (simple) example, otherwise I'm afraid we >>>>>>> can't help with it. >>>>>>> >>>>>>> >>>>>>> Joaquim >>>>>>> >>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Muksin >>>>>>>> >>>>>>>> >>>>>>>> ~~~~~~~~~~~~~~~ >>>>>>>> Muksin Umar >>>>>>>> Department of Physics, >>>>>>>> Syiah Kuala University Banda Aceh Indonesia >>>>>>>> [email protected] <mailto:[email protected]> >>>>>>>> Phone: +62-81263289103 <tel:%2B62-81263289103> >>>>>>>> >>>>>>>> Section 2.2 Geophysical Deep Sounding >>>>>>>> GFZ-Potsdam, German Research Centre for Geosciences >>>>>>>> Phone: +49-331288 28690 <tel:%2B49-331288%2028690> >>>>>>>> email : [email protected] <mailto:[email protected]> >>>>>>>> Mailing list for GMT discussions of all kinds. If you are >>>>>>>> not sure you have found a bug, discuss it here first. To >>>>>>>> formally report bugs or request features, please register >>>>>>>> and add New Issue on gmt.soest.hawaii.edu >>>>>>>> <http://gmt.soest.hawaii.edu> To unsubscribe, send the >>>>>>>> message "signoff gmt-help" to [email protected] >>>>>>>> <mailto:[email protected]> Note: gmt-help will >>>>>>>> become obsolete on Sept 1, 2014 - please use forum on >>>>>>>> gmt.soest.hawaii.edu <http://gmt.soest.hawaii.edu> instead. >>>>>>> >>>>>>> Mailing list for GMT discussions of all kinds. If you are not >>>>>>> sure you have found a bug, discuss it here first. To formally >>>>>>> report bugs or request features, please register and add New >>>>>>> Issue on gmt.soest.hawaii.edu <http://gmt.soest.hawaii.edu> >>>>>>> To unsubscribe, send the message "signoff gmt-help" to >>>>>>> [email protected] <mailto:[email protected]> >>>>>>> Note: gmt-help will become obsolete on Sept 1, 2014 - please >>>>>>> use forum on gmt.soest.hawaii.edu >>>>>>> <http://gmt.soest.hawaii.edu> instead. >>>>>> >>>>>> Mailing list for GMT discussions of all kinds. If you are not >>>>>> sure you have found a bug, discuss it here first. To formally >>>>>> report bugs or request features, please register and add New >>>>>> Issue on gmt.soest.hawaii.edu <http://gmt.soest.hawaii.edu> To >>>>>> unsubscribe, send the message "signoff gmt-help" to >>>>>> [email protected] <mailto:[email protected]> >>>>>> Note: gmt-help will become obsolete on Sept 1, 2014 - please >>>>>> use forum on gmt.soest.hawaii.edu >>>>>> <http://gmt.soest.hawaii.edu> instead. >>>>> >>>>> >>>>> -- >>>>> Muksin Umar >>>>> -------------------------------- >>>>> Geophysikalische Tiefensondierung >>>>> Helmholtz-Zentrum Potsdam >>>>> Deutsches GeoForschungsZentrum GFZ >>>>> Telegrafenberg >>>>> Haus E, Raum 453 >>>>> 14473 Potsdam >>>>> Telefon:+49 331 288-28690 <tel:%2B49%20331%20288-28690> >>>>> E-Mail:[email protected] <mailto:[email protected]> >>>>> www.gfz-potsdam.de/mitarbeiter/muksin-muksin/ <http://www.gfz-potsdam.de/mitarbeiter/muksin-muksin/> >>>>> Mailing list for GMT discussions of all kinds. If you are not >>>>> sure you have found a bug, discuss it here first. To formally >>>>> report bugs or request features, please register and add New >>>>> Issue on gmt.soest.hawaii.edu <http://gmt.soest.hawaii.edu> To >>>>> unsubscribe, send the message "signoff gmt-help" to >>>>> [email protected] <mailto:[email protected]> >>>>> Note: gmt-help will become obsolete on Sept 1, 2014 - please >>>>> use forum on gmt.soest.hawaii.edu <http://gmt.soest.hawaii.edu> >>>>> instead. >>>> >>> >>> >>> -- >>> Muksin Umar >>> -------------------------------- >>> Geophysikalische Tiefensondierung >>> Helmholtz-Zentrum Potsdam >>> Deutsches GeoForschungsZentrum GFZ >>> Telegrafenberg >>> Haus E, Raum 453 >>> 14473 Potsdam >>> Telefon:+49 331 288-28690 <tel:%2B49%20331%20288-28690> >>> E-Mail:[email protected] <mailto:[email protected]> >>> www.gfz-potsdam.de/mitarbeiter/muksin-muksin/ <http://www.gfz-potsdam.de/mitarbeiter/muksin-muksin/> >> >> >> >> >> -- >> Muksin >> >> >> ~~~~~~~~~~~~~~~ >> Muksin Umar >> Department of Physics, >> Syiah Kuala University Banda Aceh Indonesia >> [email protected] <mailto:[email protected]> >> Phone: +62-81263289103 >> >> Section 2.2 Geophysical Deep Sounding >> GFZ-Potsdam, German Research Centre for Geosciences >> Phone: +49-331288 28690 >> email : [email protected] <mailto:[email protected]> > > Mailing list for GMT discussions of all kinds. If you are not sure you > have found a bug, discuss it here first. To formally report bugs or > request features, please register and add New Issue on > gmt.soest.hawaii.edu To unsubscribe, send the message "signoff gmt-help" > to [email protected] <mailto:[email protected]> Note: > gmt-help will become obsolete on Sept 1, 2014 - please use forum on > gmt.soest.hawaii.edu instead. Mailing list for GMT discussions of all > kinds. If you are not sure you have found a bug, discuss it here first. > To formally report bugs or request features, please register and add New > Issue on gmt.soest.hawaii.edu To unsubscribe, send the message "signoff > gmt-help" to [email protected] > <mailto:[email protected]> Note: gmt-help will become obsolete > on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead. -- ------------------------------------------------------------ Dr Marcus Badger Research Associate Organic Geochemistry Unit School of Chemistry University of Bristol Cantock's Close BRISTOL BS8 1TS UK Office: W417 Tel: +44 (0) 117 33 16795 Mobile: +44 (0) 774 07 96811 Email: [email protected] ------------------------------------------------------------ sent from doorn Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first. To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu To unsubscribe, send the message "signoff gmt-help" to [email protected] Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead.