Removing scale bar

1,533 views
Skip to first unread message

Andrew Cross

unread,
May 13, 2015, 2:12:19 PM5/13/15
to mtex...@googlegroups.com
Hi all,

Does anyone know how to turn the scale bar off in MTEX plots? 

Cheers

Andrew

Rüdiger Kilian

unread,
May 14, 2015, 6:16:37 AM5/14/15
to mtex...@googlegroups.com
Hi Andrew,
I agree, it would be really nice if there'd been an option to turn it off.
I used to comment out the relevant lines in
mtex/EBSDAnalysis/@grainBoundary/plot.m
mtex/plotting/mapPlot.m
mtex/plotting/@mtexFigure/drawNow.m
containing "micronBar", not very elaborate and comfortable, indeed.
I'd also appreciate if there would be an option to turn it off.
All the best,
Rüdiger


From: mtex...@googlegroups.com [mtex...@googlegroups.com] on behalf of Andrew Cross [ajcr...@gmail.com]
Sent: Wednesday, May 13, 2015 8:12 PM
To: mtex...@googlegroups.com
Subject: {MTEX} Removing scale bar

--
If you want to reduce the number of emails you get through this forum login to https://groups.google.com/forum/?fromgroups=#!forum/mtexmail, click "My membership" and select "Don't send me email updates". You can still get emails on selected topics by staring them.
---
You received this message because you are subscribed to the Google Groups "MTEX" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mtexmail+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/mtexmail.
For more options, visit https://groups.google.com/d/optout.

Ralf Hielscher

unread,
May 15, 2015, 10:25:18 AM5/15/15
to mtex...@googlegroups.com, ajcr...@gmail.com
I agree, I should work on this.

Ralf

Ralf Hielscher

unread,
May 23, 2015, 2:30:43 AM5/23/15
to mtex...@googlegroups.com, ajcr...@gmail.com
In MTEX 4.0.23 you can use the figure menu MTEX->Anotations->Micronbar

or the code
[~,mP] = plot(ebsd)
mP
.micronBar.visible = 'off'

In previous versions you can do
hgt = findall(gca,'type','hgtransform')
set(hgt,'visible','off')

I hope this helps,

Ralf.

David Mainprice

unread,
May 23, 2015, 5:43:19 AM5/23/15
to mtex...@googlegroups.com
Dear Ralf,

Many thanks. I wonder if we had a similar command to remove the list of phases on a map, as in some rocks the list is long. Alternatively and may be more useful plot list outside of map.

all the best David

--
If you want to reduce the number of emails you get through this forum login to https://groups.google.com/forum/?fromgroups=#!forum/mtexmail, click "My membership" and select "Don't send me email updates". You can still get emails on selected topics by staring them.
---
You received this message because you are subscribed to the Google Groups "MTEX" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mtexmail+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/mtexmail.
For more options, visit https://groups.google.com/d/optout.

David Mainprice
15 Les Romarins
34270 Les Matelles

(In France 04 67 67 03 30)

Heinrich Siemes

unread,
May 23, 2015, 6:17:53 AM5/23/15
to mtex...@googlegroups.com
Der folgende Teil dieser Nachricht enthält einen Anhang im
sogenannten Internet MIME Nachrichtenformat.
Wenn Sie Pegasus Mail oder ein beliebiges anderes MIME-kompatibles
Email-System verwenden, sollten Sie den Anhang mit Ihrem Email-System
speichern oder anzeigen können. Gegebenenfalls fragen Sie Ihren Administrator.

The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

---- Datei Information/File information -----------
Datei/File: ODFplot imported in CorelDraw.cdr
Datum/Date: 23 May 2015, 12:00
Größe/Size: 261359 bytes.
Typ/Type: ZIP-archive
ODFplot imported in CorelDraw.cdr

Heinrich Siemes

unread,
May 23, 2015, 6:17:54 AM5/23/15
to mtex...@googlegroups.com
Der folgende Teil dieser Nachricht enthält einen Anhang im
sogenannten Internet MIME Nachrichtenformat.
Wenn Sie Pegasus Mail oder ein beliebiges anderes MIME-kompatibles
Email-System verwenden, sollten Sie den Anhang mit Ihrem Email-System
speichern oder anzeigen können. Gegebenenfalls fragen Sie Ihren Administrator.

The following section of this message contains a file attachment
prepared for transmission using the Internet MIME message format.
If you are using Pegasus Mail, or any another MIME-compliant system,
you should be able to save it or view it from within your mailer.
If you cannot, please ask your system administrator for assistance.

---- Datei Information/File information -----------
Datei/File: ODFplot MTEX pdf-flie.pdf
Datum/Date: 23 May 2015, 12:05
Größe/Size: 35948 bytes.
Typ/Type: Unbekannt
ODFplot MTEX pdf-flie.pdf

Heinrich Siemes

unread,
May 23, 2015, 6:17:55 AM5/23/15
to mtex...@googlegroups.com
Dear Ralf,
I have problems with the fontsize in plots of sigma sections.
Independent of the given fontsize in the command line for plotting of
the sigma sections the figure always shows the same too large size.
Import of the sigma sections shows additionally a 90 degree rotation
of the maximum value. See the attachments.
Best regards and nice hollidays,
Heinrich.

Ralf Hielscher

unread,
May 24, 2015, 2:24:34 PM5/24/15
to mtex...@googlegroups.com, david.m...@gmail.com
Hi David,

with the legend you can use standard matlab commands to control it, i.e.

switch the legend off
legend('off')

plot the legend outside
legend('location','NorthEastOutSide');


Ralf.

Ralf Hielscher

unread,
May 24, 2015, 2:27:29 PM5/24/15
to mtex...@googlegroups.com, sie...@rwth-aachen.de, sie...@rwth-aachen.de
Hi Siemes,

you might want to try

setMTEXpref('FontSize',8)
plotODF
(odf)

Ralf

Heinrich Siemes

unread,
May 25, 2015, 10:47:46 AM5/25/15
to mtex...@googlegroups.com
Hallo Ralf,
thank you very much for your advice. But, there is no effect on the
size of the letters.
By the way, I am still using MTEX 3.5
Heinrich.

Datum: Sun, 24 May 2015 11:27:29 -0700
Von: Ralf Hielscher <ralf.hi...@gmail.com>
An: <mtex...@googlegroups.com>, <sie...@rwth-aachen.de>
Kopie an: <sie...@rwth-aachen.de>
Betreff: Re: fontsize in odfplots

Tang Lei

unread,
May 21, 2020, 4:54:17 PM5/21/20
to MTEX
Hi, I just added it at the end of plotting. Just like this:
plot(ebsd('gamma'), ebsd('gamma').orientations,'micronBar','off');

Then the scale bar disappeared.
Hope this is helpful to you.

Lei

On Monday, 25 May 2015 15:47:46 UTC+1, Heinrich Siemes wrote:
Hallo Ralf,
thank you very much for your advice. But, there is no effect on  the
size of the letters.
By the way, I am still using MTEX 3.5
Heinrich.

Datum:        Sun, 24 May 2015 11:27:29 -0700
Von:        Ralf Hielscher <ralf.h...@gmail.com>
Reply all
Reply to author
Forward
0 new messages