Am Freitag, 9. August 2013 07:47:07 UTC+2 schrieb roby: > Dear Group,
> is it possible to plot vectors of definite length using ListVectorPlot ? >
Hi Bob & group, thank you for yout hint.
I tried to generalize the whole procedure. I rewrote a special version of ListVectorPlot and called it ListVectorP. ListVectorP takes (almost) the same Options as does ListVectorPlot and adds the Option AbsolutVectorScale->s where s determines the vectorlength relative to the grid of base points.
If the new Option is omitted or set to None (AbsolutVectorScale->None) the result is the default behaviour of ListVectorPlot.
Things work fine so far.
But now I would like to name my new version just equal to the built in ListVectorPlot. I tryed this by Unprotect[ListVectorPlot] and redefining it such that it also takes the new Option. But when trying to evaluate my version of ListVectorPlot the system complains: "ListVectorPlot::optx: Unknown Option AbsolutVectorScale in Options[ListVectorPlot]"
"Definition for ListVectorP" ************************************
"ListVectorPlot::optx: Unknown Option AbsolutVectorScale in Options[ListVectorPlot]"
Any hints how to manage this ?
Is it in general possible to redefine mathematica builtins but still call the original function from within the redefinition ? In particular I would like to overload a builtin (distinguished by an additional Option) and keep the possibility to call the original (distinguished by omitting the additional Option)