Commit 6547615b authored by Jesse Heckman's avatar Jesse Heckman

fixed datadirectory in toolbox functions

parent 2f803183
......@@ -11,7 +11,7 @@ function pb_savefig(varargin)
fig = pb_keyval('fig',varargin);
fname = pb_keyval('fname',varargin);
dir = pb_keyval('dir',varargin,'/Users/jjheckman/Documents/Data/PhD/Figure/');
dir = pb_keyval('dir',varargin,[pb_datadir 'PhD/Figure/']);
cd(dir);
g = groot;
......
......@@ -10,8 +10,8 @@ function pb_savefigs(varargin)
prefix = pb_keyval('prefix',varargin,'Fig_');
dir = pb_keyval('dir',varargin,'true');
path = '/Users/jjheckman/Documents/Data/PhD/Figure/';
if dir; path = pb_getdir('dir',path), end
path = [pb_datadir 'PhD/Figure/'];
if dir; path = pb_getdir('dir',path); end
g = groot;
h = flipud(g.Children);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment