Error In Color Linetype Argument Matlab
Contents |
Support Answers MathWorks Search MathWorks.com MathWorks Answers Support MATLAB Answers™ MATLAB Central Community Home MATLAB matlab plot color codes Answers File Exchange Cody Blogs Newsreader Link Exchange ThingSpeak Anniversary
Matlab Legend
Home Ask Answer Browse More Contributors Recent Activity Flagged Content Flagged as Spam Help MATLAB Central
Subplot Matlab
Community Home MATLAB Answers File Exchange Cody Blogs Newsreader Link Exchange ThingSpeak Anniversary Home Ask Answer Browse More Contributors Recent Activity Flagged Content Flagged as Spam Help Trial software Ryan (view profile) 6 questions 3 answers 3 accepted answers Reputation: 10 Vote0 User defined color/linetype property Asked by Ryan Ryan (view profile) 6 questions 3 answers 3 accepted answers Reputation: 10 on 6 May 2014 Latest activity Answered by Geoff Hayes Geoff Hayes (view profile) 0 questions 1,998 answers 1,074 accepted answers Reputation: 5,620 on 6 May 2014 Accepted Answer by Geoff Hayes Geoff Hayes (view profile) 0 questions 1,998 answers 1,074 accepted answers Reputation: 5,620 67 views (last 30 days) 67 views (last 30 days) In my code, I define some color and linetype properites: marker = 'wo'; markerFaceColor_str = 'MarkerFaceColor'; markerFaceColor_val_str = 'w'; plotSymbol_str = ['''' marker '''' ',' '''' markerFaceColor_str '''' ',' '''' markerFaceColor_val_str ''''];This gives me the string 'wo','MarkerFaceColor','w'My plot statement (which gives me an "Error in color/linetype argument") is plot(x,y,plotSymbol_str)If I write out the string, it works fine. Why am I getting the error? 0 Comments Show all comments Tags color/linetype argument Products No products are associated with this question. Related Content 1 Answer Geoff Hayes (view profile) 0 questions 1,998 answers 1,074 accepted answers Reputation: 5,620 Vote0 Link Direct link to this answer: https://www.mathworks.com/matlabcentral/answers/128568#answer_135874 Answer by Geoff Hayes Geof
Support Answers MathWorks Search MathWorks.com MathWorks Answers Support MATLAB Answers™ MATLAB Central Community Home MATLAB Answers File Exchange Cody Blogs Newsreader Link Exchange ThingSpeak Anniversary Home Ask Answer Browse More Contributors Recent Activity Flagged Content Flagged as Spam Help MATLAB Central Community Home MATLAB Answers File Exchange Cody Blogs Newsreader Link Exchange ThingSpeak Anniversary Home Ask Answer Browse More Contributors Recent Activity Flagged Content Flagged as Spam Help Trial software René Madsen (view profile) 2 questions 0 answers 0 accepted answers Reputation: 0 Vote0 Error in color/linetype argument when using errorbar Asked https://www.mathworks.com/matlabcentral/answers/128568-user-defined-color-linetype-property by René Madsen René Madsen (view profile) 2 questions 0 answers 0 accepted answers Reputation: 0 on 26 Aug 2015 Latest activity Edited by Walter Roberson Walter Roberson (view profile) 27 questions 27,481 answers 9,586 accepted answers Reputation: 49,595 on 26 Aug 2015 60 views (last 30 days) 60 views (last 30 days) HiI am new to MATLAB and am trying to use the https://www.mathworks.com/matlabcentral/answers/236608-error-in-color-linetype-argument-when-using-errorbar errorbar function but keep getting this errorError using errorbar (line 37) Error in color/linetype argument. when applying the followingbar(HTL,QuantAcid(4:end,1:end),'group'); errorbar(HTL,QuantAcid(4:end,1:end),StdAcid(4:end,1:end),'group'); I am not sure what the actual error is 0 Comments Show all comments Tags errorbar Products No products are associated with this question. Related Content 1 Answer Walter Roberson (view profile) 27 questions 27,481 answers 9,586 accepted answers Reputation: 49,595 Vote0 Link Direct link to this answer: https://www.mathworks.com/matlabcentral/answers/236608#answer_190404 Answer by Walter Roberson Walter Roberson (view profile) 27 questions 27,481 answers 9,586 accepted answers Reputation: 49,595 on 26 Aug 2015 'group' would mean that you are asking for a line that is simultaneously green ('g'), and red ('r'), and that the marker should be simultaneously a circle ('o'), and a pentagram ('p'). And possibly you could get away with that, but there is no color or marker named 'u'. 2 Comments Show all comments René Madsen René Madsen (view profile) 2 questions 0 answers 0 accepted answers Reputation: 0 on 26 Aug 2015 Direct link to this comment: https://www.mathworks.com/matlabcentral/answers/236608#comment_306465 Thank you for the quick replybut I am guessing that I need to have 'group' otherwise x, y and
Support Support Newsreader MathWorks Search MathWorks.com MathWorks Newsreader Support MATLAB Newsgroup MATLAB Central Community Home MATLAB Answers File Exchange Cody Blogs Newsreader Link https://www.mathworks.com/matlabcentral/newsreader/view_thread/254249 Exchange ThingSpeak Anniversary Home Post A New Message Advanced Search Help MATLAB Central Community Home MATLAB Answers File Exchange Cody Blogs Newsreader Link Exchange ThingSpeak Anniversary Home Post A New Message Advanced Search Help Trial software define color Subject: define color From: Juliette Salexa Juliette Salexa (view profile) 104 posts Date: 21 Jun, 2009 04:57:01 Message: 1 error in of 6 Reply to this message Add author to My Watch List View original format Flag as spam How do I define custom colors in matlab ?? The documentation for the color commands are almost useless .. I've tried: set(grey,'Color',[0.4,0.4,0.4]) but when I put 'grey' in my plot options, my lines are not grey. Subject: define color From: error in color Bruno Luong Bruno Luong (view profile) 5224 posts Date: 21 Jun, 2009 08:04:01 Message: 2 of 6 Reply to this message Add author to My Watch List View original format Flag as spam "Juliette Salexa"