Git Product home page Git Product logo

matgraphics's Introduction

MatGraphics

MatGraphics extends the functionalities of the graphics tools in MATLAB R2018a for doing specific tasks. The functions provided in this repo may be less relevant for newer versions of MATLAB. Some examples can be found in my other repositories for MATLAB.

Licensing

This software is licensed under the GNU General Public License (version 3).

Functionalities

Setting Default Properties

The defaults of MATLAB R2018a Graphics are suited for making on-screen plots, but not for prints. For example, the positioning properties are defaulted to use normalized units to make it easier for scaling on screens. This behavior is not ideal for plotting where fixed and precise positioning is preferred.

The +Groot package allows the default properties of MATLAB graphics objects to be conveniently 'get' and 'set'. The function Groot.getdefault and Groot.setdefault implement regular expression to perform the get and set, allowing many default properties to be retrieved or changed with a simple command. The function Groot.usedefault allows one to load a 'profile' of default properties as well as reset the default properties to factory settings. A customizable profile that suits the styles of typical LaTeX documents is provided.

The function docfigure is a simpler alternative to the builtin function figure for creating a figure object that is optimized for making plots for prints.

The axes' ticks in MATLAB are, by default, set to vary in length according to the axes' dimensions. The function fixticklength allows the tick lengths to be set to a fixed value.

Working on Colormaps

It is sometimes useful to be able to locate specific colors in a MATLAB colormap, given a colormap limit. ColorMap.findcolor provides a functionality to find the RGB triplet for each element in a real array from a specified colormap. The +ColorMap package also provides additional custom colormaps for plotting surface data.

Making Figure Labels

The package +Label provides some functions to conveniently add labels to a figure. The function Label.subfigure is useful to annotate subfigures with, for example, alphabetical letters. The function Label.peak is used in the examples in PeakFit repository to annotate the positions of the peaks.

matgraphics's People

Contributors

heriantolim avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

annayang1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.