Skip to content

Remove redundant code #46

Open
Open

Description

@djmgit

In lib/plotutil.py, the functions plot and plot_line has many elements in common. Try to merge plot_line into plot. Use a flag (or any other method) to determine whether a function is to be plotted or two lists of x and y has to be plotted and do both the stuff in the same function. In this way the repeated code can be removed.

Activity

  1. LoneOne123 commented on Nov 26, 2017

    @LoneOne123
    Contributor

    @djmgit i've done this, so when u merged the typo from me from rahuldcoder (cause i corrected this on my local already and don't want to steal his solution :D), then i will commit it and open a PR ;)
    with flag u mean an additional argument to the plot function right?
    greets

  2. djmgit commented on Nov 26, 2017

    @djmgit
    MemberAuthor

    @LoneOne123 yes, by flag I mean an additional argument.

  3. LoneOne123 commented on Dec 14, 2017

    @LoneOne123
    Contributor

    so sry have had an exam yesterday and my ssd died :(
    now i have a bit time and have a look at all again and will solve this issue in the next days.

  4. LoneOne123 commented on Dec 14, 2017

    @LoneOne123
    Contributor

    @djmgit here we go, but it still just works with [array1][array2] and not with [array1],[array2]
    if u want i can switch it, but i think we dont need the comma,
    or i can try to make it work with both
    greets

  5. djmgit commented on Dec 15, 2017

    @djmgit
    MemberAuthor

    @LoneOne123 no problem, its great that you are still continuing to work on this :)
    Changes look good, send a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions