Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #8505 > unrolled thread

Setting global graphics options

Started byThemis Matsoukas <tmatsoukas@me.com>
First post2012-02-12 10:11 +0000
Last post2012-02-13 08:45 +0000
Articles 4 — 4 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Setting global graphics options Themis Matsoukas <tmatsoukas@me.com> - 2012-02-12 10:11 +0000
    Re: Setting global graphics options "Oleksandr Rasputinov" <oleksandr_rasputinov@ymail.com> - 2012-02-13 08:39 +0000
    Re: Setting global graphics options "Nasser M. Abbasi" <nma@12000.org> - 2012-02-13 08:42 +0000
    Re: Setting global graphics options David Reiss <dbreiss@gmail.com> - 2012-02-13 08:45 +0000

#8505 — Setting global graphics options

FromThemis Matsoukas <tmatsoukas@me.com>
Date2012-02-12 10:11 +0000
SubjectSetting global graphics options
Message-ID<jh838i$oni$1@smc.vnet.net>
I have converged to a set of graphics options with respect to frames, labels, fonts etc, that I use very often. How can I set up Mathematica to load my options at launch time? I know I can use SetOptions but I would have to execute this command each time I launch Mathematica. Is there a way to set these options in the preferences somewhere? I looked  under Format/Option Inspector but could not identify an appropriate option.

Thanks

Themis

[toc] | [next] | [standalone]


#8506

From"Oleksandr Rasputinov" <oleksandr_rasputinov@ymail.com>
Date2012-02-13 08:39 +0000
Message-ID<jhai86$50e$1@smc.vnet.net>
In reply to#8505
On Sun, 12 Feb 2012 10:11:30 -0000, Themis Matsoukas <tmatsoukas@me.com>  
wrote:

> I have converged to a set of graphics options with respect to frames,  
> labels, fonts etc, that I use very often. How can I set up Mathematica  
> to load my options at launch time? I know I can use SetOptions but I  
> would have to execute this command each time I launch Mathematica. Is  
> there a way to set these options in the preferences somewhere? I looked   
> under Format/Option Inspector but could not identify an appropriate  
> option.
>
> Thanks
>
> Themis
>

Place the appropriate SetOptions expression into init.m. This is how the  
front end options are set up when Mathematica starts, for example.

[toc] | [prev] | [next] | [standalone]


#8510

From"Nasser M. Abbasi" <nma@12000.org>
Date2012-02-13 08:42 +0000
Message-ID<jhaidu$53k$1@smc.vnet.net>
In reply to#8505
On 2/12/2012 4:11 AM, Themis Matsoukas wrote:
>  How can I set up Mathematica to load my options at launch time?

You can add the commands to the init.m file?

Possible locations for init.m files include the following:

$BaseDirectory/Kernel
$UserBaseDirectory/Kernel
$BaseDirectory/FrontEnd
$UserBaseDirectory/FrontEnd

For example, on windows I see one here:

C:\Documents and Settings\All Users\Application Data\Mathematica\Kernel\init.m

But I prefer to put the commands I want in an m file and
put the file on my own separate data disk, away from the C drive
in case I update Mathemtica, then I might lose the file.

Simply load the commands from the .m file using << after starting Mathematica.

--Nasser

[toc] | [prev] | [next] | [standalone]


#8512

FromDavid Reiss <dbreiss@gmail.com>
Date2012-02-13 08:45 +0000
Message-ID<jhaijn$56p$1@smc.vnet.net>
In reply to#8505
You can do this by editing an appropriate init.m file to contain the
appropriate commands.  The one that would apply to a single user and
which will survive an update to your Mathematica is located here
(execute it to open the directory where you should see the init.m
file):

SystemOpen[ToFileName[$UserAddOnsDirectory, "Kernel"]]

Best,
David


On Feb 12, 5:11 am, Themis Matsoukas <tmatsou...@me.com> wrote:
> I have converged to a set of graphics options with respect to frames, labels, fonts etc, that I use very often. How can I set up Mathematica to load my options at launch time? I know I can use SetOptions but I would have to execute this command each time I launch Mathematica. Is there a way to set these options in the preferences somewhere? I looked  under Format/Option Inspector but could not identify an appropriate option.
>
> Thanks
>
> Themis

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web