diff --git a/README.mkdn b/README.mkdn index 83e97802..0d1b07aa 100755 --- a/README.mkdn +++ b/README.mkdn @@ -73,7 +73,7 @@ This lives here: [https://plot.ly/matlab](https://plot.ly/matlab) ## Questions & troubleshooting -- https://community.plotly.com/c/api/matlab/ +- https://community.plotly.com/c/graphing-libraries/matlab/ ## Contribute diff --git a/plotly/plotly_setup_aux/addplotlystartup.m b/plotly/plotly_setup_aux/addplotlystartup.m index 7b908bb4..d5adb914 100644 --- a/plotly/plotly_setup_aux/addplotlystartup.m +++ b/plotly/plotly_setup_aux/addplotlystartup.m @@ -14,7 +14,7 @@ if currentStartupID == -1, error('plotly:startupRead',... ['\n\nShoot! It looks like something went wrong reading the file: ' ... '\n' startupPaths{locs} '\n' ... - '\nPlease contact your system admin or post a topic on https://community.plotly.com/c/api/matlab/ for more \ninformation. In the ' ... + '\nPlease contact your system admin or post a topic on https://community.plotly.com/c/graphing-libraries/matlab/ for more \ninformation. In the ' ... 'mean time you can add the Plotly API \nto your search path manually whenever you need it! \n\n']); end %check for any instances of the addplotlyapi function @@ -29,7 +29,7 @@ if currentStartupID == -1, error('plotly:startupWrite',... ['\n\nShoot! It looks like something went wrong writing to the file: ' ... '\n\n' startupPaths{locs} '\n' ... - '\nPlease contact your system admin or post a topic on https://community.plotly.com/c/api/matlab/ for more \ninformation. In the ' ... + '\nPlease contact your system admin or post a topic on https://community.plotly.com/c/graphing-libraries/matlab/ for more \ninformation. In the ' ... 'mean time you can add the Plotly API \nto your search path manually whenever you need it! \n']); end fprintf(currentStartupID,['\n' addString]); diff --git a/plotly/plotly_setup_aux/plotlycleanup.m b/plotly/plotly_setup_aux/plotlycleanup.m index d4dc52f6..73e25dd9 100644 --- a/plotly/plotly_setup_aux/plotlycleanup.m +++ b/plotly/plotly_setup_aux/plotlycleanup.m @@ -85,7 +85,7 @@ error('plotly:deletePlotlyAPI',... ['\n\nShoot! It looks like something went wrong removing the Plotly API ' ... 'from the MATLAB toolbox directory \n' ... - 'Please contact your system admin or post a topic on https://community.plotly.com/c/api/matlab/ for more information. \n\n']); + 'Please contact your system admin or post a topic on https://community.plotly.com/c/graphing-libraries/matlab/ for more information. \n\n']); end % update removed list diff --git a/plotly/plotlyfig_aux/helpers/extractPatchFace.m b/plotly/plotlyfig_aux/helpers/extractPatchFace.m index 93886e47..05d6b0b4 100644 --- a/plotly/plotlyfig_aux/helpers/extractPatchFace.m +++ b/plotly/plotlyfig_aux/helpers/extractPatchFace.m @@ -28,8 +28,11 @@ %-paper_bgcolor-% col = 255*patch_data.FaceColor; - marker.color = ['rgb(' num2str(col(1)) ',' num2str(col(2)) ',' num2str(col(3)) ')']; - + if ~isempty(patch_data.FaceAlpha) && isnumeric(patch_data.FaceAlpha) + marker.color = ['rgba(' num2str(col(1)) ',' num2str(col(2)) ',' num2str(col(3)) ',', num2str(patch_data.FaceAlpha), ')']; + else + marker.color = ['rgb(' num2str(col(1)) ',' num2str(col(2)) ',' num2str(col(3)) ')']; + end else switch patch_data.FaceColor diff --git a/plotly/plotlyfig_aux/helpers/plotlymsg.m b/plotly/plotlyfig_aux/helpers/plotlymsg.m index 2cd92d8d..34770e0a 100644 --- a/plotly/plotlyfig_aux/helpers/plotlymsg.m +++ b/plotly/plotlyfig_aux/helpers/plotlymsg.m @@ -6,13 +6,13 @@ case 'plotlyfigConstructor:invalidInputs' errormsg = ['\nOops! It appears that you did not initialize the plotlyfig object using the\n', ... 'required: >> plotlyfig(handle [optional],''property'',''value'',...) \n',... - 'input structure. Please try again or post a topic on https://community.plotly.com/c/api/matlab/ for any additional help!\n\n']; + 'input structure. Please try again or post a topic on https://community.plotly.com/c/graphing-libraries/matlab/ for any additional help!\n\n']; %--saveplotlyfig invocation--%; case 'plotlySaveImage:invalidInputs' errormsg = ['\nOops! It appears that you did not invoke the saveplotlyfig function using the\n', ... 'required: >> saveplotlyfig(plotly_figure, ...) input structure, where plotly_figure\n',... 'is of type cell (for data traces) or of type struct (with data and layout fields). \n',... - 'Please try again or post a topic on https://community.plotly.com/c/api/matlab/ for any additional help!\n\n']; + 'Please try again or post a topic on https://community.plotly.com/c/graphing-libraries/matlab/ for any additional help!\n\n']; end end diff --git a/plotly/plotlystream_aux/plotlystream_demo.m b/plotly/plotlystream_aux/plotlystream_demo.m index d1db2d16..c64b1c56 100644 --- a/plotly/plotlystream_aux/plotlystream_demo.m +++ b/plotly/plotlystream_aux/plotlystream_demo.m @@ -5,7 +5,7 @@ catch fprintf(['\nOops - No stream_keys found! please run: >>saveplotlycredentials(',... ' ''username'',''api_key'',''stream_key).'' \n',... - 'Your stream key(s) can be found online at: https://plot.ly or post a topic on https://community.plotly.com/c/api/matlab/',... + 'Your stream key(s) can be found online at: https://plot.ly or post a topic on https://community.plotly.com/c/graphing-libraries/matlab/',... 'for more information.\n\n']); return end diff --git a/plotlysetup_offline.m b/plotlysetup_offline.m index cbf1d370..d5984299 100644 --- a/plotlysetup_offline.m +++ b/plotlysetup_offline.m @@ -17,7 +17,7 @@ function plotlysetup_offline(plotly_bundle_url, varargin) error('plotly:wrongInput',.... ['\n\nWhoops! Wrong number of inputs. Please run >> help plotlysetup_offline \n',... 'for more information regarding the setup your Plotly API MATLAB \n',... - 'Library. Please post a topic on https://community.plotly.com/c/api/matlab/ for more information.']); + 'Library. Please post a topic on https://community.plotly.com/c/graphing-libraries/matlab/ for more information.']); end catch exception %plotlysetup input problem catch... fprintf(['\n\n' exception.identifier exception.message '\n\n']); @@ -33,7 +33,7 @@ function plotlysetup_offline(plotly_bundle_url, varargin) error('plotly:notFound',... ['\n\nShoot! It looks like MATLAB is having trouble finding the current version ' ... '\nof Plotly. Please make sure that the Plotly API folder is in the same ' ... - '\ndirectory as plotlysetup.m. Questions? Ask https://community.plotly.com/c/api/matlab/\n\n']); + '\ndirectory as plotlysetup.m. Questions? Ask https://community.plotly.com/c/graphing-libraries/matlab/\n\n']); end %add Plotly API MATLAB Library to search path addpath(genpath(plotlyFolderPath)); @@ -151,7 +151,7 @@ function plotlysetup_offline(plotly_bundle_url, varargin) 'the Plotly folder to your MATLAB path manually by running: \n\n',... '>> plotly_path = fullfile(pwd, ''plotly'')\n',... '>> addpath(genpath(plotly_path))\n\n',... - 'Questions? Ask https://community.plotly.com/c/api/matlab/\n\n']; + 'Questions? Ask https://community.plotly.com/c/graphing-libraries/matlab/\n\n']; end diff --git a/plotlysetup_online.m b/plotlysetup_online.m index ee6f0402..a415d30b 100644 --- a/plotlysetup_online.m +++ b/plotlysetup_online.m @@ -19,7 +19,7 @@ function plotlysetup_online(username, api_key, varargin) error('plotly:wrongInput',.... ['\n\nWhoops! Wrong number of inputs. Please run >> help plotlysetup_online \n',... 'for more information regarding the setup your Plotly API MATLAB \n',... - 'Library. Please post a topic on https://community.plotly.com/c/api/matlab/ for more information.']); + 'Library. Please post a topic on https://community.plotly.com/c/graphing-libraries/matlab/ for more information.']); end catch exception %plotlysetup input problem catch... fprintf(['\n\n' exception.identifier exception.message '\n\n']); @@ -35,7 +35,7 @@ function plotlysetup_online(username, api_key, varargin) error('plotly:notFound',... ['\n\nShoot! It looks like MATLAB is having trouble finding the current version ' ... '\nof Plotly. Please make sure that the Plotly API folder is in the same ' ... - '\ndirectory as plotlysetup.m. Questions? Ask on https://community.plotly.com/c/api/matlab/\n\n']); + '\ndirectory as plotlysetup.m. Questions? Ask on https://community.plotly.com/c/graphing-libraries/matlab/\n\n']); end %add Plotly API MATLAB Library to search path addpath(genpath(plotlyFolderPath)); @@ -157,7 +157,7 @@ function plotlysetup_online(username, api_key, varargin) ['\n\nWhoops! Wrong number of varargin inputs. Please run >> help plotlysetup \n',... 'for more information regarding the setup of your Plotly API MATLAB Library. \n',... 'Your stream_ids, plotly_domain, and plotly_streaming domain were not set. \n',... - 'Questions? Please post on https://community.plotly.com/c/api/matlab/22.']); + 'Questions? Please post on https://community.plotly.com/c/graphing-libraries/matlab/22.']); end for n = 1:2:numel(varargin) @@ -223,6 +223,6 @@ function plotlysetup_online(username, api_key, varargin) '>>saveplotlycredentials(''your_username'', ''your_api_key'')\n\n',... 'You can save your domain configuration by running:\n\n',... '>>saveplotlyconfig(''your_base_domain'')\n\n',... - 'Questions? Ask https://community.plotly.com/c/api/matlab/\n\n']; + 'Questions? Ask https://community.plotly.com/c/graphing-libraries/matlab/\n\n']; end