All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.danielTucano.matplotlib.pyplot.title.kt Maven / Gradle / Ivy

Go to download

Matplotlib for kotlin: A simple graph plot library for kotlin with powerful python matplotlib

The newest version!
package io.github.danielTucano.matplotlib.pyplot

import io.github.danielTucano.extensions.toPythonStringOrNone
import io.github.danielTucano.extensions.toPythonStringQuotedOrEmpty
import io.github.danielTucano.matplotlib.Axes
import io.github.danielTucano.python.PythonScriptBuilder

fun title(label: String = "", loc: Axes.TitleLocationOptions? = null, pad: Float? = null, y: Float? = null) {
    PythonScriptBuilder.addCommand(
        "plt.title(" +
                "${label.toPythonStringQuotedOrEmpty()}," +
                "loc=${loc.toPythonStringOrNone()}," +
                "pad=${pad.toPythonStringOrNone()}," +
                "y=${y.toPythonStringOrNone()}" +
                ")"
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy