|
Hi Stanislav,
Le 31/03/2013 11:12, Станислав a écrit : yes, if you want to fill it with a color : http://help.scilab.org/docs/5.4.0/en_US/xrects.html There is neither logic nor sense for the user, but with xrect() you won't be able to fill it with a color as parameter. So you should assume and use that nb>=1 allows nb=1 :-) If a user wants to plots a regular polygon, don't you think that one prefer toSince a SEP is running, here are some ideas of other possible developmentsIt is a good idea and it is very simple to implement. see it as regular ? Backward compatibility would be insured by keeping the default isoview=%f. But i would easily bet that in existing codes, xrpoly(...) commands and 90% of the time preceded or followed by something like ax = gca(); ax.isoview = "on"; and that for 9% of the remaining 10%, it would not injure to add isoview. Besides, backward compatibility can be damaged. But it can be done in separate function. And in one year somebody will ask: "I am newbie and I didn't know about such division and I don't understand why it has been done." :-)So, finally you understand why there are xrects() after xrect(), and xfrect() (yes, enabling filling deserve a totally new function, don't you think? :-(( ), xarcs() after xarc(), xfarc() after xarc(), and obviously xfarcs() (no, it is not a joke. just check)... to easily enable any further tuning for other attributes of the lines (color,- showAll=%t option: => enlarge axes bounds up to the external bounds ofI don't understand what "returning the vector of created handles" is for? thickness), the filling color of markers, etc. For instance, stars of the example could be made yellow. This would give : H = xrpoly([0.5 0.5], 12, 0.4, symbol=[14, 8], filling=-color("cyan"), isoview=%t) H.mark_background = color("yelow"); // and for all polygons in a once ![]() |
_______________________________________________ dev mailing list [email protected] http://lists.scilab.org/mailman/listinfo/dev

